Search Results

Search: Posts Made By: govindraj
31,450
Posted By govindraj
thanks i tried in another server. now the script...
thanks i tried in another server. now the script is working and the file data is displayed. but the file is not appended with spaces as i said.
31,450
Posted By govindraj
Still same error , awk: cmd. line:2: fatal:...
Still same error ,

awk: cmd. line:2: fatal: cannot open file `
BEGIN{s=sprintf("%-100s", "")}
NR==1{$0=$0 s}
NR==n{$0=$0 s}
1' for reading (No such file or directory)
31,450
Posted By govindraj
Yes.... i replace them both with file name...
Yes.... i replace them both with file name Tect.txt
I saved your script say a.sh in dir /tmp. and in the same path file also exists.
when i run the script sh a.sh , the error occurs mentioned...
31,450
Posted By govindraj
Hi Franklin52, thanks for your reply.... ...
Hi Franklin52,
thanks for your reply....

It is throwing error

awk: cmd. line:2: fatal: cannot open file `
BEGIN{s=sprintf("%-100s", "")}
NR==1{$0=$0 s)}
NR==n{$0=$0 s)}
1' for reading...
31,450
Posted By govindraj
thanks for reply..... I am new to unix.... ...
thanks for reply.....

I am new to unix....
I require to append 100 spaces(fillers) to header(first line) and 100 space to trailer(last line).
the data in the middle not to be changed.

i do...
31,450
Posted By govindraj
TO append Blank Spaces
Hi ,

i need awk command for which it appends 100 blank spaces for Header (starts wirh H..) and Trailer (starts with T..) in a file.

HODACC(need to add 100 blank spaces here)
D0000......
Showing results 1 to 6 of 6

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