Hi Martin,
Bash regular expressions can come in handy when moving lots (but not
all) files. For example
mv DSCF0[4-6]*.jpg will move everything between DSCF04... to DSCF06...
with one statement.
Strictly speaking those are not regular expressions. Their historic
name is glob patterns,
Hi
On 25/11/10 14:14, Ralph Corderoy wrote:
Are you aware of the shell's filename completion with the Tab key?
After typing
cd /fo
Apologies if already mentioned, but the key sequence I probably use most
in bash is crtl-r followed by some part of a previously entered
command. Bash
On Mon, 2010-11-22 at 22:51 +, Victor Churchill wrote:
On 22 November 2010 20:56, Peter Merchant madsmad...@netscape.net wrote:
And my wife complains that under MS Windows there are so many ways to do
things and why couldn't they just have one way to do it.
I am lazy. From the
On 22/11/10 18:05, Tim wrote:
I am a cli dunce so please bear with me.
Lets say I am working in the terminal screen in the following folder
m...@computer:~#/folder1/folder2/folder3/folder4/folder5 mv blah blah.
Now I want to go back to work in folder2, what the easy command to get me
On Monday 22 November 2010, Peter Merchant wrote:
On Mon, 2010-11-22 at 19:30 +, John Carlyle-Clarke wrote:
On 22/11/10 18:05, Tim wrote:
I am a cli dunce so please bear with me.
Lets say I am working in the terminal screen in the following folder
On Tuesday 23 November 2010, Peter Merchant wrote:
On Mon, 2010-11-22 at 22:51 +, Victor Churchill wrote:
On 22 November 2010 20:56, Peter Merchant madsmad...@netscape.net wrote:
And my wife complains that under MS Windows there are so many ways to
do things and why couldn't they just
I am a cli dunce so please bear with me.
Lets say I am working in the terminal screen in the following folder
m...@computer:~#/folder1/folder2/folder3/folder4/folder5 mv blah blah.
Now I want to go back to work in folder2, what the easy command to get me back
there??
I have to move a
m...@computer:~#/folder1/folder2/folder3/folder4/folder5 mv blah blah.
Now I want to go back to work in folder2, what the easy command to get me back
there??
Assuming you're working in folder5 in your example, running 'cd ..'
will go back to folder4.
To go down two levels, you want
Hi Tim,
you can use '..' to tell cd to go one folder up from where you are currently
in the folder hierarchy.
So if you are at /home/tim/folder1/folder2/folder3/folder4/folder5 , then
$ cd .. will put you into folder4
$ cd ../.. will put you into folder3
$ cd ../../.. will put you into folder2
On 22/11/2010 18:16, StarLion wrote:
m...@computer:~#/folder1/folder2/folder3/folder4/folder5 mv blah
blah.
Now I want to go back to work in folder2, what the easy command to get me
back
there??
Assuming you're working in folder5 in your example, running 'cd ..'
will go back to
On 22/11/10 18:05, Tim wrote:
I am a cli dunce so please bear with me.
Lets say I am working in the terminal screen in the following folder
m...@computer:~#/folder1/folder2/folder3/folder4/folder5 mv blah blah.
Now I want to go back to work in folder2, what the easy command to get
Judicious use of symbolic links and bash regular expressions can also make
short work of this.
If you do
cd ~/folder1/folder2/folder3/folder4/folder5
ln -s ../../.. folder2
you will have a folder under folder5 called folder2 which points to your
original folder2 directory
You can then simply
mv
Sheesh! Seconds after posting, I spot my deliberate mistakes...
On 22/11/10 19:30, John Carlyle-Clarke wrote:
That's a bit odd looking, but command gets executed for each file
found, replacing '{}' with the name. For example:-
find -mtime -2 -iname 'foo*' -exec mv '{}' /folder1/folder2
On Mon, 2010-11-22 at 19:30 +, John Carlyle-Clarke wrote:
On 22/11/10 18:05, Tim wrote:
I am a cli dunce so please bear with me.
Lets say I am working in the terminal screen in the following folder
m...@computer:~#/folder1/folder2/folder3/folder4/folder5 mv blah
blah.
On 22 November 2010 20:56, Peter Merchant madsmad...@netscape.net wrote:
And my wife complains that under MS Windows there are so many ways to do
things and why couldn't they just have one way to do it.
I am lazy. From the terminal I would just type in 'sudo dolphin' and
split the display
On Monday 22 November 2010 20:56:34 Peter Merchant wrote:
On Mon, 2010-11-22 at 19:30 +, John Carlyle-Clarke wrote:
On 22/11/10 18:05, Tim wrote:
I am a cli dunce so please bear with me.
Lets say I am working in the terminal screen in the following folder
On 22/11/10 18:05, Tim wrote:
I am a cli dunce so please bear with me.
Lets say I am working in the terminal screen in the following folder
m...@computer:~#/folder1/folder2/folder3/folder4/folder5 mv blah blah.
Now I want to go back to work in folder2, what the easy command to get me
17 matches
Mail list logo