Search Results

Search: Posts Made By: yogeshkumkar
15,211
Posted By Scrutinizer
awk 'NR==FNR{A[$1]=$2;next}$3 in A{$3=A[$3]}1' ...
awk 'NR==FNR{A[$1]=$2;next}$3 in A{$3=A[$3]}1' file2 file1
2,343
Posted By daPeach
I don't know what you want to do, so I just...
I don't know what you want to do, so I just showed how to transform your filenames. You have to use cp or mv.

it's ${var:begin:length}, where begin is the beginning position, length is the number...
10,596
Posted By bartus11
It seems like homework... but anyway: awk...
It seems like homework... but anyway: awk 'FNR==45678{print $0,FILENAME}' *.txt > output.txt
120,662
Posted By danmero
If \n don't work try: $ echo 'foo, bar' | sed...
If \n don't work try:
$ echo 'foo, bar' | sed 's/, /\
/g'
foo
bar
Or awk:
$ echo 'foo, bar' | awk -F', ' '{for(i=1;i<=NF;i++) printf "%s\n", $i}'
120,662
Posted By DeCoTwc
d@DeCobox-Micro ~ $ cat unix need, to,...
d@DeCobox-Micro ~
$ cat unix
need, to, break, this, line, into, individual, lines

$ cat unix |sed 's/\,/\n/g'
need
to
break
this
line
into
individual
lines

d@DeCobox-Micro ~...
Showing results 1 to 5 of 5

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