Search Results

Search: Posts Made By: aghoras
8,068
Posted By aghoras
od -c says: 0000000 P A R T A 1...
od -c says:
0000000 P A R T A 1 \r \n P A R T A 2
0000020 \r \n % \r \n P A R T B 1 \r \n P A
0000040 R T B 2
0000045
8,068
Posted By aghoras
Same thing as before. sed -n '/%/,$ p' returns: ...
Same thing as before. sed -n '/%/,$ p' returns:
%
PART B1


sed -n '/%/,$ p' | sed '1d' returns:

PART B1
8,068
Posted By aghoras
sed skipping the last line in a file
Hello All,
I have a file like this:

PART A1
PART A2
%
PART B1
PART B2

The last line in the file (PART B2) does not end with a new line. i.e <EOF> immediately follows "PART B2".

Here is...
Showing results 1 to 3 of 3

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