10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 Replies
2. Shell Programming and Scripting
Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
Discussion started by: satishmallidi
12 Replies
3. Shell Programming and Scripting
Dear Unix Experts :),
Below is a small section of a large file with the following list:
1. Starts with string " interest" as the heading
2. Followed by a list of activities
3. Ends with a blank line before starting with another different list.
E.g.
Sporting interest
football... (13 Replies)
Discussion started by: gjackson123
13 Replies
4. Shell Programming and Scripting
Hello,
Can somone help with this command please?
I have this output pattern in a file. I use a simple awk command to
print each field separated by comma. For example I use this to get the first
awk -F, "{ print $1 }"
"ABC=abcdefg,CDF=mnqrst,GGG=hrvyess"
issue:
What I... (7 Replies)
Discussion started by: mnassiri
7 Replies
5. Shell Programming and Scripting
#cat file
aa
bb
cc
dd
ee
77
dd
gg
xx
I want to get: when VAR="zzz D" get below out put (7 Replies)
Discussion started by: yanglei_fage
7 Replies
6. Shell Programming and Scripting
Hello folks
I have a txt file of information about journal articles from different fields. I need to convert this information into a format that is easier for computers to manipulate for some research that I'm doing on how articles are cited. The file has some header information and then details... (8 Replies)
Discussion started by: ksk
8 Replies
7. Shell Programming and Scripting
I know this has been asked before but I just can't parse the syntax as explained. I have a set of files that has user information spread out over two lines that I wish to merge into one:
User1NameLast User1NameFirst User1Address
E-Mail:User1email
User2NameLast User2NameFirst User2Address... (11 Replies)
Discussion started by: walkerwheeler
11 Replies
8. Shell Programming and Scripting
Hello,
I have a logfile which is in this format:
1211667249500#3265
1211667266687#2875
1211667270781#1828
Is there a way to read the logfile line by line every time I execute the code and put the two numbers in the line in two separate variables?
Something like:
1211667249500#3265... (7 Replies)
Discussion started by: dejavu88
7 Replies
9. Shell Programming and Scripting
Hi All
I have a script which has produced a list, I have used 'sed' to number my list, but i want to list at end of line with the first line starting at zero (0) and brackets round it
ie
My List i want
Hello (0)
this (1)
day (2)
can (3)
be (4)
sed '/./=' filename | sed '/./N; s/\n/) /'... (5 Replies)
Discussion started by: chassis
5 Replies
10. UNIX for Dummies Questions & Answers
Hi, this is a pretty intersting problem, I would like to convert a list of words into a concatenated string of words with whitespace between each word.
e.g file list :-
hello
how
are
you
today
convert into
hello how are you today.
What command would I use to do this?
Thanks (2 Replies)
Discussion started by: zulander
2 Replies