10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Need help in this requirement.
I have fileA with one column and fileB with 26 columns.
I need to match the value from fileA with fileB, if matches I have to return that value from fileB, and the next value, 5th and 6th values.
NOTE- the matching value's position changes in... (7 Replies)
Discussion started by: vamsikrishna928
2. Shell Programming and Scripting
I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
Discussion started by: RasB15
3. Shell Programming and Scripting
I have a problem where I have a large amount of files that I need to scan and return a line and its following line, but only when the following line begins with a string.
String one - line one must begin with 'Bill'
String two - line two must begin with 'Jones'.
If these two... (7 Replies)
Discussion started by: majormajormajor
4. Shell Programming and Scripting
Hi, I have text file:
Address: "120_B_C; ksilskdj; lsudlfw"
Address: "65_D_F; wnmlsi;lsuod;,...."
Zip:90233I want to insert 2 new lines before the 'Address: ' line deriving value from this Address line value
The Address value in quotes... (1 Reply)
Discussion started by: ysrini
5. UNIX for Dummies Questions & Answers
I have files in a directory with filenames that match three specific patterns:
I would like to have an "ls" command that will list only files matching the first two patterns. However, if I type: ls *'.L2_LAC'* I will get files that... (2 Replies)
Discussion started by: msb65
6. Shell Programming and Scripting
i am unable to exact matching filename in the loop.
Filename.in file contains
/home_dir contains files
"1","Customer Product Detail","1000","salary"
"1","Information Customer Product... (2 Replies)
Discussion started by: onesuri
7. UNIX for Dummies Questions & Answers
My requirement is to search for a paritcular string from a group of .gz files and to print the lines containing that string and the name of the files in which that string is present.
Daily 500 odd .gz files will be generated in a directory(directory name will be in the form of... (4 Replies)
Discussion started by: krao
8. Shell Programming and Scripting
Hey I am relatively new to Linux and shell scripting, looking for a spot of help with a script I am working on.
I am writing a script that counts the number of lines in all the files in a directory, sorts them by line number and then returns ONLY the file with the most lines.
Right now I can... (11 Replies)
Discussion started by: Breakology
9. Shell Programming and Scripting
Hiiiii every one,
I am facing a problem while giving a file name which has space in it.
The problem is ...
I have to read a file where the set of input files are stored.
Now getting that name I have to open the file and i have to extract the name of the user from where it is written like"by... (2 Replies)
Discussion started by: kheyali Mitra
10. Shell Programming and Scripting
What would be the easiest way to grep all files within a particular directory that match a partial filename? For example, searching all files that begin with "filename.txt" and are appended with the date they were created. I am using Ksh 88, btw. (3 Replies)
Discussion started by: mharley