Search Results

Search: Posts Made By: muthuveerappan
3,700
Posted By vbe
Since I don't know bash... #!/usr/bin/ksh ...
Since I don't know bash...

#!/usr/bin/ksh
parameter1=""

if [ "$1" == "-l" ]
then
parameter1="-l"
else
parameter1="-ltr"
fi

command="ls $parameter1"

echo $command
#-----
#...
1,204
Posted By jayan_jay
$ a="find /your/home/path -type f -print | xargs...
$ a="find /your/home/path -type f -print | xargs grep \"pattern\""
$ echo $a
find /your/home/path -type f -print | xargs grep "pattern"
$ eval $a
/your/home/path/filename:pattern
1,942
Posted By rdcwayx
grep -l "abcd" *.cpp |xargs sed -i.bak...
grep -l "abcd" *.cpp |xargs sed -i.bak 's/abcd/xyz/g'
18,575
Posted By radoulov
In command mode: ...
In command mode:

:%s/\([^,]*,[^,]*,[^,]*,\)//

With vim (or other vi clone that supports re-interval:

:%s/\([^,]*,\)\{3}//

Otherwise:

cut -d, -f4- infile
Showing results 1 to 4 of 4

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