10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm new to scripting.. facing some problems while inserting content of a file into another file...
I want to insert content of a file (file2) into file1, before first occurrence of "line starts with pattern" in file1
working on linux
its unix world
working on... (14 Replies)
Discussion started by: Jagadeesh Kumar
2. Shell Programming and Scripting
I have two files
i am the header
I want a script that would give me file2 with the header/first line as if in file1 (3 Replies)
Discussion started by: jacobs.smith
3. Shell Programming and Scripting
I have a requirement where i have to read a file line by line and see if the string(fixed postion 10 to 15 in the file) in line 2 is greater than string in line 1.
I have used following code
while read LINE1
current_inv_no=$(echo "$LINE1" | cut -c 10-15)
read... (2 Replies)
Discussion started by: chethanbg2010
4. Shell Programming and Scripting
i have applied the following command on a file named unix.txt that contains the string "linux from the text"
grep -n -i -w "linux from the text" unix.txt
and the result is
5:Today's Linux from the text systems are split into various branches, developed over time by AT&T as well as various... (5 Replies)
Discussion started by: arindamlive
5. UNIX for Dummies Questions & Answers
2. every line similar to:
"...____ your sister?is1are0am0Grammar point1_______ the chairs in..."
3. need to extract only the numbers in each line, eg 001 in the case above.
Tried different GREP/Sed combinations but...here I am
An output like that would be... (9 Replies)
Discussion started by: eldeingles
6. Shell Programming and Scripting
Hi experts,Please help me for the below requirement. i have a source file.(lets say contains 50 columns). I am extarcting five columns from the source file by using pattern file. for example input file:--------a,b,c,d,"a,g","v b",s,koutputfile=======a,"a,g","v b",s,kThanks in advance subhendu (2 Replies)
Discussion started by: subhendu81
7. Shell Programming and Scripting
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
# check if the user has... (1 Reply)
Discussion started by: Shazin
8. Shell Programming and Scripting
I would like to extract a certain portion of sentences from a particular sentence i.e. to extract the last section embrace by
Cheers (6 Replies)
Discussion started by: dwgi32
9. Shell Programming and Scripting
If my file looks like this….
and I want to take each line individually and put it in a variable so it can be read
later in it's on individual test statement, how can I do that? I guess what I'm asking is how can I extract each line individually.
Thanks (5 Replies)
Discussion started by: terryporter51
10. UNIX for Dummies Questions & Answers
I have a datafile contain hundreds of lines:
=================== (3 Replies)
Discussion started by: bobo