Search Results

Search: Posts Made By: bluesue
28,546
Posted By junior-helper
You're on the right track. The file size or...
You're on the right track. The file size or amount of lines should not matter, imho.

The sed command you mentioned will not work. Here's a fix:
sed "s/\(.\{4031\}\)......./\1/" $filename >...
28,546
Posted By RudiC
I'm afraid above will not work as you lost...
I'm afraid above will not work as you lost inportant chars. Try sed "s/\(.\{4031\}\)......./\1/"

That should work as you apply the command to only one line at a time.
28,546
Posted By Don Cragun
Although both sed and cut work on Ubuntu, the...
Although both sed and cut work on Ubuntu, the standards only require sed to work on text files. Files with lines containing more than 2048 bytes are not text files on HP-UX. The cut utility,...
28,546
Posted By junior-helper
Similar questions have already been asked and...
Similar questions have already been asked and answered here. Right at the bottom on this thread you'll find these threads.

Check...
28,546
Posted By pilnet101
If you are using bash, there is no need to call...
If you are using bash, there is no need to call any external tools to perform this. You can use parameter expansion alone as per below:

# Example line variable
line="this is an example line of...
12,967
Posted By Scrutinizer
Try: cut -c -2,4- file
Try:
cut -c -2,4- file
Showing results 1 to 6 of 6

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