10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a csv dataset like this :
I'm thinking of use like awk, sed to covert the dataset to this format: (if it's two character, then keep the same)
TT,rs9274407... (7 Replies)
Discussion started by: nengcheng
2. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
blah blah blah
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
Greetings everyone, I need a bit of help in solving the following problem:
I'm given an array of numbers and I have to compute the sum of the array elements using n processes, and the inter process communication has to be done with pipes(one pipe, to be exact).
I managed to solve the problem... (14 Replies)
Discussion started by: ephesos
4. Shell Programming and Scripting
I'm using AIX(ksh shell).
> cat temp.txt
I want the output as:
I want to combine multiple lines into single line where third column is same.
Is... (1 Reply)
Discussion started by: samuelray
5. Shell Programming and Scripting
Would appear to me to be a farily simple question but having search all the threads I can't find the answer .. I just want sed to output the single line in a file that contains two string anywhere on the line..
e.g. currently using this command
sed -n -e'/str1/p' -e '/str2/p' < file
and... (3 Replies)
Discussion started by: flopster
6. Shell Programming and Scripting
I have the following scenario, The contents of main file are like :
And i need the output in the following form:
... (3 Replies)
Discussion started by: dipanchandra
7. Shell Programming and Scripting
I want to make sed write a part of fileA (first 7 lines) to file1 and the rest of fileA to file2 in a single call and single line in sed. If I do the following:
sed '1,7w file1; 8,$w file2' fileA
I get only one file named file1 plus all the characters following file1. If I try to use curly... (1 Reply)
Discussion started by: varelg
8. Shell Programming and Scripting
I have a file 'imei_01.txt' having the following contents:
$ cat imei_01.txt
where I want to check whether the expression 'first single alphabet followed by 6 digits' is present in the file (here it is the first record 'a123456')
I am using the following... (5 Replies)
Discussion started by: royalibrahim
9. Shell Programming and Scripting
Could someone tell me the single character wildcard for SED?
I have the file below:
$ more input2
AAA /A/B/C BBB /D/E/F
CCC /G/H/I DDD
I want to remove all strings which contain forward slashs "/" to get the below:
I tried to do it in SED by the command below but I... (8 Replies)
Discussion started by: stevefox
10. Shell Programming and Scripting
Is it possible to process multiple variables in a single sed command?
I have the following ksh with three variables and I want to search for all variables which start with "var" inside input.txt.
I tired "$var$" but it just prints out everyting in input.txt and does not work.
$ more test.ksh... (5 Replies)
Discussion started by: stevefox