10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
p.txt
T|DCNT=100|RECCHK=22222.2|PERCHK=32323|#
I want to extract the value of 100 22222.2 and 32323 and assign it to variable
x1,y1,z1
x=`cut -f2 -d "=" p.txt`
x1=`echo $x | cut -f1 -d "|" `
y=`cut -f3 -d "=" p.txt`
y1=`echo $y | cut -f1 -d "|" `
z=`cut -f4 -d "=" p.txt`
z1=`echo $z... (3 Replies)
Discussion started by: w020637
3 Replies
2. UNIX for Dummies Questions & Answers
Hi
I have to remove the junk characters from my file. Please help..
File content :
CURITY_CODE_GSD) FROM� DL_CB_SOD_EOD_VALUATION WHERE� ASOF (1 Reply)
Discussion started by: arukuku
1 Replies
3. Shell Programming and Scripting
You are given a 1 year logfile with each line starting with a date in the form “YYYY-MM-DD”. How would you extract logs from the 4th day of each month and put them into a new file (3 Replies)
Discussion started by: DOkuwa
3 Replies
4. Shell Programming and Scripting
Hi All,
I am encountering a problem while removing a string from a file. Actually, i have done this thing before using sed to replace the word but this time word is not specfic. its value is changing with each file.
e.g.
%HD% Serial Number list per DN required. +3... (2 Replies)
Discussion started by: apjneeraj
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a problem in getting values of a specific string on a file, can you please help me what command or script that I will use to get it?
I have a file with the following sample contents. I need to print the values of time. The time sometimes appears on column 2 or column 3. Please... (2 Replies)
Discussion started by: ayhanne
2 Replies
6. Shell Programming and Scripting
Hi All,
How can we call a c function from a perl script?
Is it the same way as we do for shell script ?
Thanks in advance
JS (9 Replies)
Discussion started by: jisha
9 Replies
7. UNIX for Dummies Questions & Answers
hi all, I'm really newbie on this and I need some help.
how is the best way to extract a strig or substring from a each line in a file.
e.g. I want to print only this ERROR=JUD+the followed numbers from one line like this one, considering the numbers change related to different errors
... (1 Reply)
Discussion started by: morena
1 Replies
8. UNIX for Dummies Questions & Answers
NOT IN USE, IGNORE (8 Replies)
Discussion started by: slayer666
8 Replies
9. UNIX for Dummies Questions & Answers
Hi,
'ls -ld' is no use ....
I want to get the total size of a directory.
Any advice?
Thanks in advance! (4 Replies)
Discussion started by: GCTEII
4 Replies
10. Shell Programming and Scripting
Hi,
'ls -ld' is no use ....
I want to get the total size of a directory including subdir.
Any advice?
Thanks in advance (2 Replies)
Discussion started by: GCTEII
2 Replies