![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| moving files from one server to another | uniksbro | UNIX for Dummies Questions & Answers | 1 | 07-31-2007 04:20 PM |
| Moving Files | iAm4Free | Shell Programming and Scripting | 5 | 03-28-2007 05:13 AM |
| moving between vi files | aya_r | Shell Programming and Scripting | 2 | 08-23-2005 05:36 AM |
| moving files ?? | rocker40 | UNIX for Dummies Questions & Answers | 9 | 11-09-2003 08:36 PM |
| moving only files... | sskb | UNIX for Dummies Questions & Answers | 12 | 11-19-2001 03:28 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Moving files
I wrote a script which moves files on first in first out basis.
for i in `ls –ltr | grep ^- | head -10 | awk '{print $9}'` do mv $i Test/ done But donno some reason, this is not working on my Linux box. May i know the reason? Can the above script be done by using positional parameters? for i in $* do cd $1 x = `ls –ltr | grep ^- | head -10 | awk '{print $9}'` mv $x $2 done please correct me. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|