Search Results

Search: Posts Made By: uniqme
10,441
Posted By uniqme
you can try running this way... may not need to...
you can try running this way... may not need to use chmod..


ksh /home/TestDir/awkwork/details.ksh


[@CentOS1 ~]$ pwd
/home/xxx
[@CentOS1 ~]$


[@CentOS1 ~]$ sh /tmp/sh.sh
hello

...
4,637
Posted By uniqme
cat f1.txt a 455 b 443 c 6655 d 554 ...
cat f1.txt

a 455
b 443
c 6655
d 554
e 6

$ cat f2.txt

a 56
b 5
x 678

awk '$0 !~ /#/{arr[$1]=arr[$1] " " $2}END{for(i in arr)print i,arr[i]}' f1.txt f2.txt

x 678
a 455 56
b ...
1,415
Posted By uniqme
cat s1.txt ...
cat s1.txt
@@XYMONDCHK-V1|.acklist.|developer_instead|rendy_google_yagom|1323977582|1323979382|1323979382|1|admin|test case

cat s1.txt | tr '|' '\n'
@@XYMONDCHK-V1
.acklist.
developer_instead...
1,860
Posted By uniqme
from the command line i need only to print...
from the command line i need only to print "asdfas.sh" ..
1,860
Posted By uniqme
That is so cool Agama... if i may want to...
That is so cool Agama...

if i may want to make a bit complex

file.txt
insert: akdkas job:ksdjf
command: aldfasdf asdfsdfa asdfas.sh
machine: asdfa

how can i get the output for line...
1,860
Posted By uniqme
pattern search and print using sh
Hi All,

Have a file contains multiple line with the following

file.txt
insert: akdkas job:ksdjf
command: aldfasdf asdfsdfa asdfas.sh
machine: asdfa

need to grep for insert and machine...
Showing results 1 to 6 of 6

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