Search Results

Search: Posts Made By: blackzinga80
1,811
Posted By blackzinga80
It worked, each line end with ; and the last...
It worked,
each line end with ;
and the last field i want is displayed together with ;
but i dont want ; to be displayed

output is

12345;
23456;
23455;


i want


12345
23456...
1,811
Posted By blackzinga80
compressed file
i have a file 4d7a94d0.bbb.1292

when i do

file 4d7a94d0.bbb.1292

the ouput is below

4d7a94d0.bbb.1292: gzip compressed data - deflate method

and i run this command

gunzip...
2,375
Posted By blackzinga80
this works perfectly. thanks Yinyuemi
this works perfectly. thanks Yinyuemi
2,063
Posted By blackzinga80
Unix time
how do i convert unix time to show normal

eg i have unix time

1297702242


and i want it converted to normal time.
how do i do that
2,375
Posted By blackzinga80
awk '{gsub("\"","")}/I_US/{printf...
awk '{gsub("\"","")}/I_US/{printf $2","}/I_P_ID/{printf $2","}/I_NEW/{I_NEW=$2;printf $2","}/I_OLD/{I_OLD=$2;printf $2","}/I_NAME/{printf $2",";print I_NEW-I_OLD}' RS=":|;" FS="," file



if i...
2,189
Posted By blackzinga80
thanks so much, both are working
thanks so much, both are working
2,189
Posted By blackzinga80
naming columns
i have a file staff.txt with contents

tom|25|New York
sims|40|London
neyo|18|Moscow


i want to label the column at the top, my output should be

Names|age|city of birth
tom|25|New York...
2,375
Posted By blackzinga80
This is perfect Yinyuemi
This is perfect Yinyuemi
2,375
Posted By blackzinga80
i got it right, thank you. if the lines become...
i got it right, thank you.
if the lines become more that is more columns are added, will i have to use the same script to get my results?

what does ,"\\2,\\4,\\6,\\8",$0)}{split(x,a,",")...
2,375
Posted By blackzinga80
Yinyueni, The last column does not match what i...
Yinyueni,
The last column does not match what i want, i need column 3 - column 4, yours is just a repetition of column 4
2,375
Posted By blackzinga80
Sorting complex file with awk
i have a file ddd.txt
its delimiter is : but has , and "" within each column as below and also each line ends with ;

...
2,214
Posted By blackzinga80
its excellent
its excellent
1,256
Posted By blackzinga80
now i have a different file a with content ...
now i have a different file a with content

123|topman
234|downman
456|zoom


and file b with contents


123|ftg|rft|rty
123|drf|rt|tgh
456|dfr|rxy|tyu
234|dfg|rth|hj


i want to...
1,256
Posted By blackzinga80
compare files
i have file a with content

123
234


and file b with contents


123|ftg|rft|rty
123|drf|rt|tgh
456|dfr|rty|tyu
234|dfg|rth|hj


i want to look for lines in file a that same...
2,214
Posted By blackzinga80
Thank you its fine. but now i have to compare...
Thank you its fine. but now i have to compare with the format of file a slightly different.file a has other columns added as well, but i still want to use column 1 as basis for comparison, but output...
2,214
Posted By blackzinga80
i actually wanted to say the fourth column, so it...
i actually wanted to say the fourth column, so it should be

123|GOAL|xxx|ppp
234|GOAL|rrr|xxx
456|OVER|
567|OVER|
678|OVER|
2,214
Posted By blackzinga80
scrutinizer yours worked, and how do i add the...
scrutinizer yours worked, and how do i add the third column if i want to do so?
2,214
Posted By blackzinga80
Thank you both worked ---------- Post...
Thank you both worked

---------- Post updated at 10:21 AM ---------- Previous update was at 03:21 AM ----------

hi, i just realised i needed to print the $2, column two to my output.
output...
2,214
Posted By blackzinga80
i need help in sorting two files
i have file a


123
234
456
567
678


and file b


123|xxx|hhh|ppp or zzz
234|rrr|ttt|xxx
432|ttt|mmm|nnn
678|cft|byt|mop


i want to compare file a to file b such that when...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 08:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy