sign in
|
add example
|
see also:
tail
output the last part of files
[
package
|
man 1
|
usage
|
homepage
]
examples
configs
questions
[
new example
]
copy
10
1
wc -l `find . -name "*.[ch]" -print` | tail -1 | awk '{print $1}'
Find the total number of lines in for all *.c and *.h in all sub directory's
awk
tail
wc
details
|
copy
7
1
wc -l *.[ch] | tail -1 | awk '{print $1}'
Count the number of words in all *.c and *.h files in the current directory
awk
tail
wc
details
|
copy
6
0
head -20 myfile.txt | tail -1 | wc -w
Count how many words on line 20 of myfile.txt
head
tail
wc
details
|
copy
5
0
find . -name '*.[ch]' -print0 | wc -L --files0-from=- | tail -n1
Find's the length of the longest line in any *.c or *.h file in the current hierarchy.
find
tail
wc
details
|
copy
5
0
reads the last 10 lines of a file
tail -10 filename.txt
tail
read
last
10
lines
1 year, 1 month ago
janstiegler
1 |
copy
3
0
tail -f access.log | stdbuf -oL cut -d ' ' -f1 | uniq
stdbuf
tail
source
|
details
|
copy
0
0
read the last 10 and appending lines of a file
tail -10f filename.txt
reads the last 10 and appending lines of a file
tail
linux
read
appending
1 year, 1 month ago
janstiegler
1 |
[
new config
]
[
ask question
]