Search Results

Search: Posts Made By: forroughuse
1,631
Posted By forroughuse
Hi Diddy, u can try something like this: ...
Hi Diddy,

u can try something like this:


bash-2.03$ cat brk.sh
n=`grep -n "#Time" rough1.txt|awk -F":" '{print $1 }'`
m=`expr $n - 1 `
sed -n '1,'$m'p' rough1.txt > file1.file_prod_reg...
1,670
Posted By forroughuse
Hi ganraveh, I don't know whether i...
Hi ganraveh,

I don't know whether i understand your requirement currectly or not.
you can make a shell script, something like this:

bash-2.03$ cat sd.sh
echo "enter line number: "
read n...
Showing results 1 to 2 of 2

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