10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have sample of listing as following
Database 2 entry:
Database alias = PXRES
Database name = PXRES
Local database directory = /db2/data1/db2phnx
Database release level = d.00
Comment ... (3 Replies)
Discussion started by: ckwan
2. Shell Programming and Scripting
I am getting crazy after days on looking at it:
Bash in Ubuntu 12.04.1
I want to do this:
pattern="system /path1/file1 file1"
new_pattern=" data /path2/file2 file2"
file to edit: data.db
- I need to search in the file data.db for the nth occurrence of pattern
- pattern must... (14 Replies)
Discussion started by: Phil3759
3. UNIX for Dummies Questions & Answers
I want to print the nth and n+1 lines from a file once it gets a pattern match.
If I find a match for bbb then I need to print bbb as well as 3rd and 4th line from the match.. Please help..Is it possible to get a command using sed :) (6 Replies)
Discussion started by: saj
4. Shell Programming and Scripting
Is there an awk script that can easily perform the following operation?
I have a data file that is in the format of
1945-12,22.3... (3 Replies)
Discussion started by: ncwxpanther
5. Shell Programming and Scripting
I am looking for any script which can do the following.
have to read a pattern from fileA and copy it to fileB.
Header (3 Replies)
Discussion started by: anilvk
6. Shell Programming and Scripting
I have many scripts in particular directory. And few of the scripts have exit 0 in second line. Now i wanted to list out the scripts name which has the exit 0 in its second line
I tried many options , but i can not get the filename along with the nth line pattern match :mad:. Can anyone... (14 Replies)
Discussion started by: puni
7. Shell Programming and Scripting
I would like to get a solution to this situation if possible. In a "for" loop how can I assign a value to a variable and then change the name of that variable depending on the loop iteration?
So what I am looking for is something like this in pseudo-code:
for i in 1 2 3 4
echo... (2 Replies)
Discussion started by: yonderboy
8. Shell Programming and Scripting
Hi, As I am new to filtering section of Unix I am facing a problem
I have following lines in text file :
Created RELEASE in dist/Apple_release_1_0_.zip
Created RELEASE in dist/Banana_release_1_0_.zip
Created RELEASE in dist/Mango_release_1_0_.zip
Created RELEASE in... (2 Replies)
Discussion started by: bhaskar_m
9. Shell Programming and Scripting
I want to change a line like
CPM_THRESHOLD 0.8 //
to a new value using sed
I am trying
sed -i "s/CPM_THRESHOLD/CPM_THRESHOLD\t$COH\t\t\/\//" $INPUT_4
but how can i substitute the whole line begining with CPM_THRESHOLD and substitute it? (2 Replies)
Discussion started by: larne
10. Shell Programming and Scripting
i'm glad to be a member of this big UNIXer's group :( ,hoping to be one of'm.
how i get the subsrting ahmad "from" the string ".ahmad." for example ??
Thank you all. (5 Replies)
Discussion started by: Muslem_it