diff options
author | Prabhu Ramachandran | 2015-01-29 13:48:00 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2015-01-29 13:48:00 +0530 |
commit | 92273b121ad303e819e223cdd7d2381f3d468f70 (patch) | |
tree | 679d8cbfe0b941e41e3d518ec8351787be04431f /lecture_notes/source/using_linux_tools | |
parent | 38288924f2da4451357a3f031d3605572729b07d (diff) | |
parent | b167d4ded004fb066f4462b0f59ca18801975189 (diff) | |
download | sees-92273b121ad303e819e223cdd7d2381f3d468f70.tar.gz sees-92273b121ad303e819e223cdd7d2381f3d468f70.tar.bz2 sees-92273b121ad303e819e223cdd7d2381f3d468f70.zip |
Merge branch 'master' of github.com:FOSSEE/sees into fix_basic_python
Diffstat (limited to 'lecture_notes/source/using_linux_tools')
-rw-r--r-- | lecture_notes/source/using_linux_tools/handout.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lecture_notes/source/using_linux_tools/handout.rst b/lecture_notes/source/using_linux_tools/handout.rst index 5ef762a..046e0d3 100644 --- a/lecture_notes/source/using_linux_tools/handout.rst +++ b/lecture_notes/source/using_linux_tools/handout.rst @@ -1986,13 +1986,15 @@ hyphens. echo $f|tr -s " " "-"|cut -d - -f 2- done -Now we just replace the echo command with a ``mv`` command. +Now we just replace the echo command with a ``mv`` command. Note that ``Si`` +has to be within quotes as ``mv`` takes it to be 2 different inputs as it has +space in it. :: for i in *.mp3 do - mv $i `echo $f|tr -s " " "-"|cut -d - -f 2-` + mv "$i" `echo $f|tr -s " " "-"|cut -d - -f 2-` done ``while`` |