10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a tab-file "result.txt "that looks like this
CNV.ID Sample Correlation N.comp Start.b End.b CNV.type N.exons BF Reads.expected Reads.observed Reads.ratio Gene
1 S10.Run.variant_ready 0.999411647 7 381 382 duplication 2 ... (9 Replies)
Discussion started by: nans
2. Shell Programming and Scripting
I want to remove 1st and last two characters of each line of the file
and redirect to the file called new
Basically file will have any charcter including space, spical character...
Please help.... (7 Replies)
Discussion started by: shell1509
3. Shell Programming and Scripting
I have one requirement to delete all lines from a file if it matches below scenario. File contains three column. Employee Number, Employee Name and Employee ID
Scenario is: delete all line if Employee Number (1st column) contains below
1. Non-numeric Employee Number
2. Employee Number that... (3 Replies)
Discussion started by: anshu ranjan
4. Shell Programming and Scripting
I have a csv file that I would like to remove duplicate lines based on 1st field and sort them by the 1st field. If there are more than 1 line which is same on the 1st field, I want to keep the first line of them and remove the rest. I think I have to use uniq or something, but I still... (8 Replies)
Discussion started by: refrain
5. Shell Programming and Scripting
I have a text file which has blank lines. I want them to be removed before upload it to DB using SQL *Loader. Below is the command line, i use to remove blank lines.
sed '/^ *$/d' /loc/test.txt
If i use the below command to replace the file after removing the blank lines, it replace the... (6 Replies)
Discussion started by: vel4ever
6. Shell Programming and Scripting
I have a file, let's call it "info.tmp" that contains data like this ..
I need to read "info.tmp" and for each line add strings in a way that the final output is
put /logs/ua/dummy.trigger 'AAA00001.FTP.XXX.BLA03A01.xxxxxx(+1)'
where XXX... (5 Replies)
Discussion started by: Andy_ARG
7. Shell Programming and Scripting
I have an Expect script which works very well. It logs into my remote routers and runs some commands and then to the next until finished. I need two things, first I need to save the output to a file from where the log_user 1 begins.
expect << EOF
set timeout 15
#set var "exit "
match_max... (1 Reply)
Discussion started by: numele
8. Shell Programming and Scripting
what is the sed command to remove the first two characters of every line of a text file?
each line of the text file has the same amount of characters, and they are ALL NUMERIC. there are hundreds of lines though.
20081134... (20 Replies)
Discussion started by: ajp7701
9. Shell Programming and Scripting
i have been doing this script to match every line in a current log file (access_log) with strings that i list from a path (consist of 100 of user's name ex: meggae )..
and then make a directory of every string from the text file (/path/meggae/) --->if it matched..
then print every line from the... (3 Replies)
Discussion started by: meggae
10. Shell Programming and Scripting
I have txt file like below:
How can I skip to read line 1 and grep the number 288, 291 and 1312 and save into another new txt file? (10 Replies)
Discussion started by: happyv