10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all. Newbie here.
In a directory, I have 50 files and one additional file that is a list of the names of the 50 files. I would like to create a directory for each of the 50 files, and I need the 50 directory names to correspond to the 50 file names. I know this can be done by running... (6 Replies)
Discussion started by: Zeckendorff
2. Shell Programming and Scripting
I'm new in awk and I need some help.
I have a folder with a lot of files and I need that awk do something in each file and print a new file with the output. The input file name should be modified when I print the outpu files.
Thanks in advance for help!
ciao (5 Replies)
Discussion started by: gabrysfe
3. UNIX for Dummies Questions & Answers
Very unfamiliar with unix/linux stuff. Our admin is on vacation so, need help very quickly.
I have directories (eg 40001, 40002, etc) that each have one subdirectory (01).
Each subdir 01 has multiple subdirs (001, 002, 003, etc). They are same in each dir.
I need to keep the top and... (7 Replies)
Discussion started by: kkouraus1
4. Shell Programming and Scripting
I have multiple files that starts as TRADE_LOG spread across multiple folders in the given structure..
when I do ftp uisng mput from the "." dir I am getting the below given error
mput... (1 Reply)
Discussion started by: prasperl
5. UNIX for Dummies Questions & Answers
I'd like to process multiple files. For example:
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Discussion started by: Liverpaul09
6. UNIX for Dummies Questions & Answers
say I have a few files in a directory (58 text files or somthing)
each one contains mulitple strings that I wish to replace with other strings
so in these 58 files I'm looking for say the following strings:
JAM (replace with BUTTER)
BREAD (replace with CRACKER)
SCOOP (replace... (19 Replies)
Discussion started by: rich@ardz
7. Shell Programming and Scripting
I am trying to write a bash shell script that does the following:
1.Finds all *.txt files within my directory of interest
2. reads each of the files (25 files) one by one (tab-delimited format and have the same data format)
3. skips the first 10 rows of the file
4. extracts and... (4 Replies)
Discussion started by: manishabh
8. Shell Programming and Scripting
contains name of list of files to search in.
contains the names of places to be searched in all files in "filenames"
for i in $(<filenames)
egrep -f placelist $i
done >> outputfile
Output i am getting: (0 Replies)
Discussion started by: pinnacle
I have this Korn script that I wrote (with some help) that is run by cron. I basically watches a file system for a specific filename to be uploaded (via FTP), checks to make sure that the file is no longer being uploaded (by checking the files size), then runs a series of other scripts. The... (2 Replies)
Discussion started by: heprox
10. UNIX for Dummies Questions & Answers
How do I perform a command to multiple files? For example, I want to look at all files in a directory and print the ones that do not contain a certain string. How do I go about doing this? (4 Replies)
Discussion started by: mcgrawa