Search Results

Search: Posts Made By: r@v!7*7@
3,628
Posted By Don Cragun
As I said before, most filesystems DO NOT STORE a...
As I said before, most filesystems DO NOT STORE a file creation date for files and there is no way to determine the date on which a file was created using standard interfaces. If the last...
3,628
Posted By Don Cragun
You have a few issues that keep you from reaching...
You have a few issues that keep you from reaching your goal:

Most filesystems do not keep track of when a file was created; the struct stat st_ctime field stores the timestamp of the last file...
3,341
Posted By Don Cragun
You haven't defined any variables in this awk...
You haven't defined any variables in this awk script except FS and OFS. In an ERE, $l_test is looking for end of field 2 followed by the string l_test in field 2 (which it will NEVER find) and for...
3,341
Posted By senhia83
care to give an example of what you are looking...
care to give an example of what you are looking for? exact input and exact output samples would help.
3,341
Posted By Corona688
Please use code tags for all code, data, and...
Please use code tags for all code, data, and output.

awk is a powerful language for this sort of thing, you can match strings like grep, but you can also count the number of lines and columns,...
3,341
Posted By jim mcnamara
Assuming your code works correctly for your data:...
Assuming your code works correctly for your data:

recnum=4
grep "^03,.*,.*$" file.dat | cut -d"," -f2 | awk -v r_num=$recnum 'NR==r_num'

The reason for my caveat is your regex - looks...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy