Search Results

Search: Posts Made By: gauravacl
14,140
Posted By gauravacl
Hi , Though Franklin's option works may be...
Hi ,

Though Franklin's option works may be you can also try this

awk '{if($0~"}$"){print $0}}' <filename>

Hope this helps
3,695
Posted By gauravacl
Hi, The command is which you can...
Hi,

The command is

which
you can try
which ls
hope this helps
1,590
Posted By gauravacl
Hi Rahul, Lets assume $ a=gary,linux $...
Hi Rahul,
Lets assume

$ a=gary,linux
$ echo $a
gary,linux ##output

Now

$ echo $a| awk 'BEGIN{FS=","}{print $1, " ", $2}'
gary linux ## output
...
Forum: Solaris 03-05-2009
18,230
Posted By gauravacl
oops I missed "Solaris" part completely...
oops I missed "Solaris" part completely :P
Forum: Solaris 03-05-2009
18,230
Posted By gauravacl
Hi , Try using last -t 20080418220000...
Hi ,

Try using

last -t 20080418220000 # format needs to be in sync with YYYYMMDDHHMMSS

Above command will list all the logins from the year 2008(20080418220000) starting from the day when...
18,639
Posted By gauravacl
here are the 2 file say "A" and "B" file "A"...
here are the 2 file say "A" and "B"
file "A" contains
hey
the
output
is


while file "B" contains
hey
the
updated
output
later
is

Now if you try the command
diff A B

The output...
18,639
Posted By gauravacl
diff is the command for you
diff is the command for you
3,684
Posted By gauravacl
Ali , You can also use vi editor for your query ...
Ali , You can also use vi editor for your query

:%s/Search_string/Replace_str/g
3,886
Posted By gauravacl
try the following sed...
try the following

sed -e's/SEARCH_STRING/REPLCE_STRING/g;' <filename>
3,886
Posted By gauravacl
Hi Krish, You can try sed -i...
Hi Krish,
You can try

sed -i -e's/SEARCH_STRING/REPLCE_STRING/g;' <filename>

if at all you wanna work with sed .I mean other than perl
3,684
Posted By gauravacl
Hi Ali , Though the above version is working...
Hi Ali ,
Though the above version is working fine for me you can try
sed -e's/SEARCH/REPLACE/g;' asd_dup.txt
24,931
Posted By gauravacl
Hi Diggi, Hope this works for you .Let's assume...
Hi Diggi,
Hope this works for you .Let's assume we want to grab 3rd field for the current path
where
pwd=/home/gary/tobeExtracted

Now if we execute the following command
pwd |...
4,984
Posted By gauravacl
Deepak If you could please key in the output you...
Deepak If you could please key in the output you want from your sample data :)
4,984
Posted By gauravacl
Hi Deepak , You can try "egrep " egrep...
Hi Deepak ,

You can try "egrep "

egrep -a "foot|david" <filename>

This command will fetch you lines which contains foot or david.
Hope this helps:)

Thanks
Gaurav
6,396
Posted By gauravacl
Hi Arun, If you are able to get the PID of...
Hi Arun,

If you are able to get the PID of the process you are concerned with then you get the "Files belonging to PID" using following command

lsof -p <PID>
1,907
Posted By gauravacl
Following command will give you the index of the...
Following command will give you the index of the pattern "WORD" in the string found

awk '{print match($0,/WORD/),RLENGTH }' <sample_File>

Please lemme know if you need some more details
Showing results 1 to 16 of 16

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