Hi Friends,
I am having a funny problem with grep. When I run
grep 'expr' file.txt
things work fine. But when try to get the line number using the -n option, i.e,
grep -n 'expr' file.txt
I get a message, "grep: 0652-226 Maximum line length of 2048 exceeded."
If the line has more than... (3 Replies)
hi
In my script i am having echoes which have very lage output.
echo $final
sample output:
etc...
The output gets printed continuosly.
Is there any way by which I can put a line break after every 25 positions?
In nutshell ,
I need a neat output of my BIG echo as below: (4 Replies)
hi all,
i'm new in unix....
i have question, sorry if it's missplace or too silly
let say i have a file name testfile.log that contains data
000001
000002
000003
aaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbb
cccccccccccccc
dddddddddddddddddd
000004
i want to make new file... (3 Replies)
Hi All,
Please let me know a command to parse the below line and find the words,
I have a line like this
40609 39930
In this above line the two words are separted by space.The length of this two words may differ.
I want to put 40609 in var_one and 39930 in var_two.
Eg.
Input line is ... (1 Reply)
I am trying to write a shell scrip that can give me the line length of a record that was in EBDIC and then converted to ASCII. Everything I try reports 1 yet the length is 2000+. I have tried
echo "Line length : ${#FILE}"
echo "FILE" |awk -F, '{print NF}'
awk '{lenth(file)}'
All I can... (11 Replies)
Hi,
I have a issue, I need to loop through a comma delimited file and check for the length which exceeds specified length , if Yes truncate the string.
But my problem is , I do not have to check for all the fields and the field lenght is not same for all the fields.
For ex:
Say my line... (9 Replies)
How can I change the maximum length of a programming line in fortran and C (specifically in fortran 77)?
Seems the default maximum length is 72 in fortran 77.
Thanks. (4 Replies)
The vi(m) text editor...
Google is not my friend here...
I have already found out that it is possible to save a pure text file without the '0x0A' newline character at the very end of the file but I can't find anything on the next question.
I have written a raw audio file to quantised pure... (6 Replies)