10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file that looks like this:
14985 DPN verb PPa to spend.
12886 DPNDJN bay tree.
15686 DQ verb to observe
15656 KC ... (7 Replies)
Discussion started by: jvoot
7 Replies
2. Shell Programming and Scripting
Hi!
I have a file with the following format:CDR
...
MSISDN=111
...
CDR
...
MSISDN=xxx
...
CDR
...
MSISDN=xxx
...
CDR
...
MSISDN=111 (2 Replies)
Discussion started by: Flavius
2 Replies
3. UNIX Desktop Questions & Answers
Hi,
I am trying to convert multiple Unix pipe symbol or bar into single |. I have tried with the following sed statements, but, no success :(. I need it using sed only
echo "sed 's/\|\+/\|/g'
sed 's/*/\|/'
sed 's/\|*/|/'
sed -r 's/\|+/\|/'
However, the below awk code is working fine.... (4 Replies)
Discussion started by: royalibrahim
4 Replies
4. Shell Programming and Scripting
Sample file:
This is line one,
this is another line,
this is the PRIMARY INDEX line
l ;
This is another line
The command should find the line with “PRIMARY INDEX” and remove the last character from the line preceding it (in this case , comma) and remove the first character from the line... (5 Replies)
Discussion started by: KC_Rules
5 Replies
5. Shell Programming and Scripting
Hi
Does anyone know how to set any character as the field separator with awk/nawk on a solaris 10 box. I have tried using /./ regex but this doesnt work either and im out of ideas.
thanks (7 Replies)
Discussion started by: chronics
7 Replies
6. Shell Programming and Scripting
Hi
I have this script:
#!/bin/ksh
cmd1 | cmd 2 |cmd 3| cmd4
which it creates 4 process....
Is possible to create a single process PID1 which include all commands?
Thanks
Israel (2 Replies)
Discussion started by: iga3725
2 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
I am new to the forum and to scripting so bear with me.
Thanks, Gary.
I have 3 files - file1, file2, file3
I am trying to come up with a script that will check the output of these files and if the 1st nine fields are matched in all 3 files, echo "The following string had been... (2 Replies)
Discussion started by: gazza-o
2 Replies
8. Shell Programming and Scripting
How do you print out a single quote character in AWK? Using the escape character does not seem to work.
{printf "%1$s %2$s%3$s%2$s\n" , "INCLUDE", " \' ", "THIS" }
does not work. Any suggestions? (6 Replies)
Discussion started by: cold_Que
6 Replies
9. Shell Programming and Scripting
I already have accomplished this task using sed and arrays, but since I get the variable using awk, I figured I'd ask this question and maybe I can get a cleaner solution using strictly awk.. I just can't quite grasp it in awk.
Story: I'm automating the (re)configuration of network interfaces,... (3 Replies)
Discussion started by: System Shock
3 Replies
10. 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:
AAA BBB
CCC
I tried to do it in SED by the command below but I... (8 Replies)
Discussion started by: stevefox
8 Replies