![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Could use some help
Hello All,
I could use some help, I am trying to write a small script for my mythTV dvr but I am in over my head (I am new to bash scripting), I am trying to run "ls -tr *.avi | tail -10" to get a list of the last 10 avi's I have added, and then to a ln -s of the list to create a symlink of each file to a directory. The issue is if I do theItems=`ls -tr *.avi | tail -10` They are a single string, so I tried "set -- $theItems" but spaces in file names become a value. Can anyone give a direction/assistance to how I might be able to do this? Thanks Bryan |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|