|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Parsing directories
I'm new to Unix but am trying to use awk to parse a directory to determine if the files in it are relevant.
They are all named something like arch_1_xxx.arc where the xxx is a number. Can anyone offer me clues as to how to break up the file names? I thought I would `ls` the directory into a file and then parse the file...I've spent hours trying to work it out and well..... At the end of the process, I have to move relevant files to another location. |
|
#2
|
||||
|
||||
|
you can do all that with shell, grep and xargs:
[code] ls -al dirname | grep 'thing_to_match' | xargs command[code] probably not much help, but give us more info about what you're doing with these files and the answer is yours ![]() christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Parsing directories |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|