10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following csv file at the path; now using sed command. what is this exactly doing.
sed -i 's//,/g' /FTP/LAB_RESULT_CM.csv
Thank you very much for the helpful info. (2 Replies)
Discussion started by: cplusplus1
2 Replies
2. Shell Programming and Scripting
have written a combined sed+awk to perform a lookup operation which works but looking to enhance it.
looking to match a record using any of the comma separated values + return selected fields from the record - including the field header. so:
cat foo
make,model,engine,trim,value... (6 Replies)
Discussion started by: jack.bauer
6 Replies
3. Shell Programming and Scripting
Hi
I have a large csv file with lines like below
Date,Status,orig,dest,in,out,when,where
2012-01-01 00:30:37,I,48,56,23,98,83,34
2012-06-17 15:00:38,I,72,43,12,65,34,12I will really appreciate if someone can help with a sed script to transpose this to
2012-01-01 00:30:37,I,orig,48... (5 Replies)
Discussion started by: kaf3773
5 Replies
4. 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
5. Shell Programming and Scripting
split -l $split_count newfile.txt
for i in $split_files*
do
if test -s $workingdir/$split_files*
then
./<$i.out>
fi
done ... (4 Replies)
Discussion started by: sanjay mn
4 Replies
6. Shell Programming and Scripting
Hi,
I have a filename.csv in which there are 3 colums, ie:
Name ; prefixnumber ; number
root ; 020 ; 1234567
user1,2,3 ; 070 ; 7654321
What I want is to merge colum 2 and 3 that it becomes 0201234567 or even better +31201234567 so the country number is used and drop the leading 0.... (9 Replies)
Discussion started by: necron
9 Replies
7. Shell Programming and Scripting
Please study the below script and the output
Script:
echo "Minimum ${host} ${process} response time=${min} ms" >> ${OUTDIR}/${OUTFILE};
echo "Maximum ${host} ${process} response time=${max} ms" >> ${OUTDIR}/${OUTFILE};
echo "Average ${host} ${process} response time=${avg} ms" >>... (0 Replies)
Discussion started by: ajincoep
0 Replies
8. Shell Programming and Scripting
Yes, there is a great doc out there that discusses parsing csv files with sed, and this topic has been covered before but not enough to answer my question (unix.com forums).
I'm trying to parse a CSV file that has optional quotes like the following:
"Apple","Apples, are fun",3.60,4.4,"I... (3 Replies)
Discussion started by: analog999
3 Replies
9. Shell Programming and Scripting
I am trying to remove the ita from this file:
"1234ita","john","smith"
"56789ita","jim","thomas"
the command i am using is:
sed '/^ita/d' infile.csv > outfile.csv
it is running but doing nothing, very rarely use sed so trying to learn it any help would be appreciated (2 Replies)
Discussion started by: Pablo_beezo
2 Replies
10. Shell Programming and Scripting
Hi all Member
i want compare 2 file to newfile
I am new to shell script, just wanted you guy to help.
example file A
CM-00000BN_Oth-VAS-0000392
CM-00000BNSEED_Oth-Spe-0000392
CM-00000KJ_Pos-Pro-0000806
CM-00000KJ_Pos-Pro-0000810
CM-00000KJ_Pos-Pro-0000812
CM-00000KJ_Pos-Pro-0000814... (1 Reply)
Discussion started by: ooilinlove
1 Replies