10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
I wanted to know the best way to do some matching between two files. I am currently using awk.
Example Question: If column 4 from file A is contained in column 1 from file B. Print the whole row from file A of mix of information from both files. i.e.
File A ... (1 Reply)
Discussion started by: rafir
3. Shell Programming and Scripting
I have a directory /home/datasets/ which contains a bunch (720) of subdirectories called hour_1/ hour_2/ etc..etc.. in each of these there is a single text file called (hour_1.txt in hour_1/ , hour_2.txt for hour_2/ etc..etc..) and i would like to do some text processing in them.
Each of... (20 Replies)
Discussion started by: amarn
4. UNIX for Dummies Questions & Answers
I have two files:
one that looks like this
and another that looks like this
Wstring4 (3 Replies)
Discussion started by: FelipeAd
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
9. Shell Programming and Scripting
I have 2 files
first is category:
the second is product:
which bold numbers are "foreign key" in product file and they are "primary... (5 Replies)
Discussion started by: WuZun
10. Shell Programming and Scripting
I needs to split *.txt files from single directory depends on the some mutltiple input values. i have wrote the code like below
for file in *.txt
grep -i -h "value1|value2" $file > $file;
My requirment is more input values needs to be given in grep; let us say 50... (3 Replies)
Discussion started by: arund_01