Search Results

Search: Posts Made By: atripat
3,227
Posted By atripat
Here is one quick and simple way: for file...
Here is one quick and simple way:

for file in `grep -l aabbcc *`
do
echo $file
grep -n aabbcc $file | sed 's/:/ /'
done

Replace aabbcc in the code above...
9,427
Posted By atripat
try using quotes ... use grep...
try using quotes ... use
grep "stuff*filter"
17,112
Posted By atripat
Try this: sed 's/.$//' old_file > new_file
Try this:
sed 's/.$//' old_file > new_file
17,112
Posted By atripat
try using dos2unix untility on the file once it...
try using dos2unix untility on the file once it is on AIX.
1,616
Posted By atripat
use this: /usr/xpg4/bin/grep -F $Grp_pat...
use this:
/usr/xpg4/bin/grep -F $Grp_pat /xxx/temp/xxxx.lst
3,649
Posted By atripat
Try this: Control will go inside if block...
Try this:

Control will go inside if block only if return is pressed.

#!/bin/ksh

echo "Press Enter"

IFS="\n"

read enterkey

if [[ -z $enterkey ]];then
print "This is printed only...
Forum: AIX 06-22-2007
9,501
Posted By atripat
Here is one quick and dirty way of doing it: ...
Here is one quick and dirty way of doing it:

paste -s -d"\0" result.txt > new_result.txt
Showing results 1 to 7 of 7

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