Results 1 to 2 of 2
Hey,
Could someone help me write a simple script to:
Get the name of each file (with a certain extension) in a folder Make a list of each file
I ...
- 07-26-2007 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 1
Help writing a simple bash script
Hey,
Could someone help me write a simple script to:
- Get the name of each file (with a certain extension) in a folder
- Make a list of each file
I would SO appreciate this. I'm a web developer myself so I understand how while and for loops (for example), work, but when it comes to scripting in other languages I'm pretty clueless...
Thanks for any help.
- 07-26-2007 #2
I can't tell if I'm helping someone with their homework, but here goes.
Change the .txt to whatever extension you want.Code:ls -1 *.txt | xargs cat
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode


Reply With Quote
