10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i am having a text file like below
i want to get the new file from 3 to 5
please help (1 Reply)
Discussion started by: suryanarayana
2. UNIX for Dummies Questions & Answers
I would like to cut all the lines from the log file for the timestamp . I'm not clear about how to apply grep ,awk here.Can you help me on this ?
Wed Feb 20 03:48:26 2013
Thread 1 advanced to log sequence 400 (LGWR switch)
Thu Feb 21 02:34:23 2013... (1 Reply)
Discussion started by: arul1185
3. Shell Programming and Scripting
I have a SQL script with "create table" and "alter table" statements and I want to cut all the alter table statements from original file (A) and move it to a different file (B).
Can you please me the option. Thanks a lot for your time. (3 Replies)
Discussion started by: bhupinder08
4. Shell Programming and Scripting
i want cut the lines from a log file. Example of the log file as follows..
May 27, 2011 5:54:51 PM com.huawei.ivas.utilities.sm.client.SMDeliverContrUtil isDeliverSM
May 27, 2011 5:54:51 PM com.huawei.ivas.utilities.sm.client.SMUtil addSysUpMsgLog
INFO: . The message content... (1 Reply)
Discussion started by: tonypalokkaran
5. UNIX for Dummies Questions & Answers
how can I cut out partiluar lines like from line 233 to 347 ?
any idea? (2 Replies)
Discussion started by: kvok
6. Shell Programming and Scripting
I have a script that runs a command, and the output is on multiple lines. The fields are delimited by '='. I need the 8th column from the first line and the 2nd from the second line, but I can't figure out how to display the second line.
command1 | cut -d '=' -f 8
The above gets me what I... (2 Replies)
Discussion started by: cbo0485
7. Shell Programming and Scripting
How to cut all lines in file before keyword?
1 2333214 word ...... some text
2 234343 234234 word ...... some text
3 234324 324 3234 word ...... some text
2 234343 234234
3 234324 324 3234 (4 Replies)
Discussion started by: Trump
8. Shell Programming and Scripting
My records are like this
I want to extract the value before _97|
BSC_ID=`echo $DATA | cut -f5 -d"_"`
_97|, 4, 11
and by... (16 Replies)
Discussion started by: doer
9. Shell Programming and Scripting
All, I have a file that I want to read, cut 12 lines and direct into a new file, and continue to do this until I reach the EOF. How do I do it?
can I use cat or read to do this?
the file is formated with repetitive output consisting of these 12 lines
dev_id: <device ID>... (7 Replies)
Discussion started by: turk22
10. Shell Programming and Scripting
I have a text file contaning around 150 lines, each line is a hostname.
I want to read 4 lines/hostnames and save those 4 lines to a seperate file.
say the big file is /files/bigfile and I want to have a lot of files in /files named
/files/smallfile.1 , /files/smallfile.2 and so on...
... (1 Reply)
Discussion started by: networkfre@k