sorting directory listings by time1019 (1/16/2009 10:21:59 PM) comp.unix.questions I'm struggling to find a way to list, by (change or creation) time, certain files in multiple subdirectories. The output file obtained using find . -name "*" -exec ls -lt {} ; with the permission columns rem... z
awk chokes on nul characters in text files564 (7/30/2008 4:12:47 PM) comp.lang.awk Due to an unidentified file format translation problem, many of my data files contain nonprintable nul characters, and such files cannnot be processed by awk without re-saving the files (from vi, for example). ... z
find lines containing identical strings in two files1219 (4/7/2008 10:22:56 PM) comp.unix.questions I'd like to print out all the lines in the standard output that contain 6-character strings that begin with a contant substring AA and that are also present as identical AA1234 strings in a saved file. For exa... z
how to prevent find from searching subdirectories?315 (2/23/2008 1:17:57 AM) comp.unix.questions Is there a way to limit 'find' to searching only in a specified directory and not look in sub-directories? I use find /aaa/bbb/ccc -name "file*.001" -mtime +30 -exec mv {} /aaa/ backup ; to move files older ... z
ending records reading when a condition is met1587 (6/7/2007 9:14:48 PM) comp.lang.awk I have an awk script which I would like to [b]stop[\b] reading records from a given file when a condition is met. Condition-less script is as follows: for i in *.out; do awk 'FNR == 1 { print FILENAME } FNR >... z
logical operator problem in AWK995 (2/27/2006 6:52:13 PM) comp.lang.awk I'd like to select only certain lines for further processing, but the first statement doesn't work (i.e., its second half). I'm trying to select any combination of fields 10 and 11 as specified below. (($10=="... subPlanck
deleting a penultimate line from the standard output1626 (2/15/2006 2:27:57 PM) comp.unix.questions I'm stuck with a simple problem: how to remove the penultimate line from the standard output by piping the output through sed? cat file | uniq | sed ??? '$-1d' etc. don't work... z.entropic ... z
command line awk script summing values in column i5353 (7/9/2005 11:44:18 PM) comp.lang.awk What's the simplest command-line awk script that would, for example, sum the values printed in column i? For example, how to add all the file size values generated by 'ls -l' expression: $ ls -l | awk '...' ... subPlanck
a trivial printf question319 (10/23/2004 3:28:14 AM) comp.unix.questions It must be a silly question to programmers, but I can't figure out how to format a multicolumn awk output with a varying number of significant digits and, when necessary, right-padded zeros, so that all columns... subPlanck(60)
trouble with sort817 (12/8/2004 3:55:57 AM) comp.unix.questions What kind of sorting keys should I use to order the following list in a more desired order? C1_8a145dOCV.042 C1_8a15_5dOCV.018 C1_8a15dOCV.043 C1_8a16_5dOCV.019 C1_8a2_1wOCV.088 C1_8a2_OCV.088 C1_8a21_OCV.096 ... subPlanck(60)
including a TAB in a vi macro316 (12/16/2004 4:59:07 PM) comp.unix.questions I'm unable to include a TAB character in a vi (POSIX-compliant) macro: map T :1,$s/TAB/ /g I've tried to enter Ctrl-V Ctrl-I as well as pressing the TAB key, but both didn't execute. I've tried to use \t wit... subPlanck(60)
a two-level 'sort' question632 (3/25/2005 9:24:21 PM) comp.unix.questions I'm stuck trying to sort a long list of files in the form: Feb 24 13:50 060399_20a08.124 Feb 22 12:06 060399_20a09.035 Feb 22 12:06 060399_20a09.034 whereby the entries are first sorted/grouped by sort -t_ -d... subPlanck(60)
printing the associated filenames found by 'strings'416 (3/29/2005 10:01:06 PM) comp.unix.questions I'm trying to find a certain text string in a large number of binary files. The 'strings' utility finds the files, the offset and the string I'm searching for, but it doesn't print the associated filenames, lik... subPlanck(60)
how to prevent find from searching subdirectories?315 (2/23/2008 1:17:57 AM) comp.unix.questions Is there a way to limit 'find' to searching only in a specified directory and not look in sub-directories? I use find /aaa/bbb/ccc -name "file*.001" -mtime +30 -exec mv {} /aaa/ backup ; to move files older ... subPlanck(60)
find lines containing identical strings in two files1219 (4/7/2008 10:22:56 PM) comp.unix.questions I'd like to print out all the lines in the standard output that contain 6-character strings that begin with a contant substring AA and that are also present as identical AA1234 strings in a saved file. For exa... subPlanck(60)
sorting directory listings by time1019 (1/16/2009 10:21:59 PM) comp.unix.questions I'm struggling to find a way to list, by (change or creation) time, certain files in multiple subdirectories. The output file obtained using find . -name "*" -exec ls -lt {} ; with the permission columns rem... subPlanck(60)