Hey all, I have a file something like this...
1:2:3:4:5:6:7:8
I want to be able to either replace 1 using awk or sed
awk -F ":" '{print "new_value",$2,$3,$4,$5,$6,$7,$8}' where the colons are retained.
new_value:2:3:4:5:6:7:8
Shortcut?
perl -e 'print $i=pack(c5,(40*2),sqrt(7600),(unpack(c,Q)-3+1+3+3-7),oct(104),10,oct(101));'
1:2:3:4:5:6:7:8
I want to be able to either replace 1 using awk or sed
awk -F ":" '{print "new_value",$2,$3,$4,$5,$6,$7,$8}' where the colons are retained.
new_value:2:3:4:5:6:7:8
Shortcut?
perl -e 'print $i=pack(c5,(40*2),sqrt(7600),(unpack(c,Q)-3+1+3+3-7),oct(104),10,oct(101));'