Search Results

Search: Posts Made By: RavinderSingh13
3,563
Posted By RavinderSingh13
Hello Gouri, May be following can help. ...
Hello Gouri,

May be following can help.



a=`awk 'END {print NR}' add_new_line_char1`; awk -vs1="$a" 'NR==s1 {print $0"\\n (file://\\n)"} !/^4/' add_new_line_char1


So by this we can...
3,563
Posted By RavinderSingh13
ok Gouri, could you please let us know at which...
ok Gouri, could you please let us know at which place or expected output for same so that we can help you more for same.



Thanks,
R. Singh
3,563
Posted By RavinderSingh13
Hello Gouri, Here are 2 approaches may help...
Hello Gouri,

Here are 2 approaches may help for same.


1st:

awk 'NR==1 || NR==2 || NR==3 {print} NR==4 {print $0"\\n"}' (file://\\n"}') add_new_line_char1

Output will be as follows....
Showing results 1 to 3 of 3

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