Jan 15, 2009 #1 philthygeezer Technical User Joined Jan 15, 2009 Messages 3 Location US I've got some whopping big text files to deal with, and would like to view partial contents in order to determine how to handle them. Thanks, P
I've got some whopping big text files to deal with, and would like to view partial contents in order to determine how to handle them. Thanks, P
Jan 15, 2009 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR awk 'FNR<=50' list_of_files In *nix: man head Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Jan 15, 2009 Thread starter #3 philthygeezer Technical User Joined Jan 15, 2009 Messages 3 Location US I piped the command awk 'FNR<=50' hugefile.txt > junk2.txt junk2.txt is created but it's empty. Upvote 0 Downvote
Jan 15, 2009 #5 olded Programmer Joined Oct 27, 1998 Messages 1,065 Location US Unfortunately, FNR is not portable across all versions of awk. If you run Solaris, use nawk. Upvote 0 Downvote