Tag Info

New answers tagged

2

You can do a few things. head and tail are both spec'd to display the first/last ten lines of a file by default - but if called w/ multiple arguments will do that for all and display the filenames for each. And, of course, for each, you can use the -n[num] argument to specify a number of lines other than the default ten that you would like to display. I ...


2

I would use awk: awk 'FNR==1{print "::::\n"FILENAME"\n::::"}1' *


2

pdf is typeset to produce a visual output, it's not strictly required to even contain text information. Imagine it as a printer's board with lead letters put into it. Every letter is a box with absolute position, size and style. So are all the images and so on. If you have a mathematical formula in it, you can see where the problem is: who said the text is ...


4

If the output from more is acceptable as it is, just pipe it through cat: more * | cat That will do away with the "more" prompts. Or you can get a bit more control over the display using printf in a one-liner: for fn in *; do printf "::::::\n$fn\n:::::\n"; cat "$fn"; done or as script: for fn in $*; do printf "vvvvvvvvvv\n$fn\n^^^^^^^^^^\n" ...


2

PDF and its big sister PostScript are languages used to create documents that reproduce the same output every time to any device: monitor, printer, printing press, etc. Because of that it allows the creator of the document to specify each characters properties individually. Without looking at your document I would only be guessing as to the reason why the ...


0

found this at Bash One-Liners  tr -dc a-z1-4 </dev/urandom | tr 1-2 ' \n' | awk 'length==0 || length>50' | tr 3-4 ' ' | sed 's/^ *//' | cat -s | sed 's/ / /g' |fmt must be limited by another command or generates text infintely



Top 50 recent answers are included