Search Results

Search: Posts Made By: mpolyakov
9,248
Posted By mpolyakov
1.'~' in the shell ls ~ # lists your...
1.'~' in the shell

ls ~ # lists your home directory
ls ~me # will try to list the home directory of someone with a login name of 'me'
user=you
ls ~$user # will try to list...
16,764
Posted By mpolyakov
It's not clear from your query what are you...
It's not clear from your query what are you actually need.
If you simply want to find out was this file was modified (or created) in the
last 'n' minutes, you can use 'find' command:


find ....
3,112
Posted By mpolyakov
Just the speed. If input files will be thousands...
Just the speed. If input files will be thousands of lines or more
difference will be very significant .;)
29,502
Posted By mpolyakov
If you only read file, you should not worry about...
If you only read file, you should not worry about file locking and
accessing -- OS will take care of it. Anyway, when you write to the file from shell it is no reliable way from the OS point to...
3,112
Posted By mpolyakov
If you depend on the line numbers for the...
If you depend on the line numbers for the insertion,
probably the easiest way is to use awk (nawk).

awk '
# Insert line in the file before line 5
NR=5 { print"The line you need"}
...
Showing results 1 to 5 of 5

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