diff options
author | Prabhu Ramachandran | 2015-01-22 19:11:11 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2015-01-22 19:11:11 +0530 |
commit | b167d4ded004fb066f4462b0f59ca18801975189 (patch) | |
tree | eebcecba1d8903a41cdedd32c711013e840e6ef5 /lecture_notes/source/using_linux_tools/handout.rst | |
parent | f62058977aef432a83147b35e99bd5fd0b8b0e2f (diff) | |
parent | 0dc0dfb777b91c64b3bba3370948fbe008f5a580 (diff) | |
download | sees-b167d4ded004fb066f4462b0f59ca18801975189.tar.gz sees-b167d4ded004fb066f4462b0f59ca18801975189.tar.bz2 sees-b167d4ded004fb066f4462b0f59ca18801975189.zip |
Merge pull request #6 from meetshah1995/master
Fixed minor error in sample command in main slides in mv command.
Diffstat (limited to 'lecture_notes/source/using_linux_tools/handout.rst')
-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`` |