Search Results

Search: Posts Made By: azertyazerty
17,344
Posted By radoulov
IMHO: $(wc -l < infile)
IMHO:

$(wc -l < infile)
17,344
Posted By jim mcnamara
linecnt=$( cat myfile.html | wc -l ) # not a...
linecnt=$( cat myfile.html | wc -l ) # not a UUOC because we want one result
if [ $linecnt - gt 4 ] ; then
# do something
fi
2,779
Posted By DGPickett
You might h, remove the newline, validate, g?...
You might h, remove the newline, validate, g? Validate a copy without the newline? Not sure the problem. To get \n into the buffer in the first place, you need a loop if not </h2> then N.


sed '...
Showing results 1 to 3 of 3

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