Search Results

Search: Posts Made By: karthik3152
6,492
Posted By karthik3152
xargs format is wrong . find . -name...
xargs format is wrong .


find . -name '33_cr*.rod' | xargs -n1 -t -i cut -f5
there should be no "{}" it is used only for exec with find command.



Refer to the...
1,127
Posted By karthik3152
I am not sure about awk.It can be done easily in...
I am not sure about awk.It can be done easily in Perl.
use File::Copy;
open(FH,"<aaa.txt");
@aaa=<FH>;
close(FH);
open(FH1,">>aaa.tmp");
foreach $dd(@aaa)
{
$dd =~...
1,201
Posted By karthik3152
In the find command use without use "!" option or...
In the find command use without use "!" option or "-not" option not to search for a particular string.

For example:
find . -name "*".pl -not -name "*".sh -type f

will list all the files...
1,608
Posted By karthik3152
Use sed -i -e s/\"(.*)\,(.* )\"/\1::\2/g ...
Use
sed -i -e s/\"(.*)\,(.* )\"/\1::\2/g

I think this will work
6,153
Posted By karthik3152
I am not very clear about the sed matching. ...
I am not very clear about the sed matching.

It can be easily done by matching the line.

It can be easily done using Perl:
...
1,948
Posted By karthik3152
To replace for all instances you need to add the...
To replace for all instances you need to add the global option "g"

Trying doing it this way:
perl -i -p0e 's/"keyword1-.*?"/"keyword2"/g' file

---------- Post updated at 01:41 PM ----------...
1,814
Posted By karthik3152
you can try to use find Maybe you ran the...
you can try to use find

Maybe you ran the script 24 hours ago use this option

find -mtime 1 -name scriptname

I am not very clear but it can done using mtime option.
Forum: Solaris 06-06-2011
18,814
Posted By karthik3152
umount /dev/sda1 Perform a check on the file...
umount /dev/sda1
Perform a check on the file system

e2fsck -f /usr/sda1
Now resize with

resize2fs /usr/sda1 60M
resize is a tool to perform partition.


try this.
1,187
Posted By karthik3152
i don't think there is a option for that
i don't think there is a option for that
2,028
Posted By karthik3152
awk variables
This can be done by using awk variables.Go through it
Showing results 1 to 10 of 10

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