Search Results

Search: Posts Made By: nss280
2,623
Posted By alister
The read statement should just use FILENAME. ...
The read statement should just use FILENAME.

Your script suffers from a pervasive lack of double quoted variables. Even the character counting is buggy because $line isn't quoted.

If after...
2,623
Posted By wisecracker
Also just noticed "n=0" should this be "nu=0"? ...
Also just noticed "n=0" should this be "nu=0"?

LBNL, make sure you have indented correctly, it does make it difficult to read...
4,292
Posted By frank_rizzo
remove the outer brackets. if [[ "$ida" ==...
remove the outer brackets.

if [[ "$ida" == "_W_" || "$ida" == "_SA" ]] && [[ "$chk_dy" == "Sun" || "$chk_dy" == "Sat" ]]; then
echo "id is $ida and chk_dy is $chk_dy"
fi
70,833
Posted By Reboot
OR Else you can use two commands in a single...
OR Else you can use two commands in a single stratch as :


sed -e :a -e '$q;N;1001,$D;ba' orig_file >copy_file ;mv copy_file orig_file
70,833
Posted By curleb
I'm thinking your issue is more I/O related than...
I'm thinking your issue is more I/O related than an issue with tail; maybe the onus is on the write speed as opposed to your accessing the last 1000 lines of the file. You could even read it into...
70,833
Posted By methyl
The approach will depend on the Operating System...
The approach will depend on the Operating System and the related tools, whether the file is currently open by a process (like syslogd), and whether it is a normal unix text file suitable for...
Showing results 1 to 6 of 6

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