New answers tagged

0 votes

How to unwrap 80 character text

If your input text is compatible with some common format like markdown, consider using Pandoc. It's a heavyweight solution if you don't already have the package, but it may fit the bill for some. cat ...
tremby's user avatar
  • 502
0 votes

How can I create a cron job that runs a task every three weeks?

Modern crond has a little more flexibility. Your cron might support the '/' slash operator and so this could be programmed with */21 so every 21 days it would run. * * */21 * * /bin/dosomething....
TekOps's user avatar
  • 71
0 votes

How can I find files that are bigger/smaller than x bytes?

Using fd, which is much nicer to use than find fd -S +1g will search under the current directory for any files larger than 1GB fd -S -1g will search for files smaller than 1GB
Michael Hall's user avatar
1 vote

display path to files with same names

With awk: find . | awk -F / ' {t[$NF]=t[$NF] $0 ORS; c[$NF]++} END {for (k in t) if (c[k]>1) printf "%s", t[k]} ' Notes: The above code processes pathnames as newline-terminated ...
Kamil Maciorowski's user avatar
1 vote

Full command text with unix ps

As other answers have noted, piping the output to another command (e.g., less or more) or redirecting to a file will usually result in the terminal width being ignored. However, if that's not working, ...
jjlin's user avatar
  • 15.7k

Top 50 recent answers are included