Search Results

Search: Posts Made By: harshakirans
2,630
Posted By harshakirans
Problem solved by using nawk instead of awk. ...
Problem solved by using nawk instead of awk.

Thanks.
2,630
Posted By harshakirans
print the filename
#!/bin/ksh

for files in `ls *.gz`
do

gunzip -c $files | awk -v s=$files -F\" '{print s","$6}'

done


I have tried FILENAME parameter but it did not work please help.
31,217
Posted By harshakirans
Hi, Try this out. [code] find . -type f...
Hi,

Try this out.
[code]
find . -type f -exec grep -i searchstring \{\} filename;[\code]
8,034
Posted By harshakirans
Hi If your question is to redirect the...
Hi

If your question is to redirect the output/err to file/errr-file

This will serve the purpose

cat local.csh 1>errt.txt 2>err.txt; cat err.txt

Hope i got your question right.
...
10,693
Posted By harshakirans
Hi Joy, sed 's!\(.*/\).*!mkdir -p \1!' file...
Hi Joy,

sed 's!\(.*/\).*!mkdir -p \1!' file | sh



Here in the mentioned code Franklin52 has used ! as a delimiter ( may be thats confusing you).

And the sed body goes like this.

Sed ...
Showing results 1 to 5 of 5

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