Search Results

Search: Posts Made By: angshuman_ag
2,225
Posted By pseudocoder
Try sed -e "s/\(.*TRANSFER TO\).*\(\/usr\)/\1...
Try
sed -e "s/\(.*TRANSFER TO\).*\(\/usr\)/\1 $var \2/"

To "translate" $var into it's value
To also pick the slash "/" from usr
53,983
Posted By pseudocoder
:( Looks like your csh's built-in test operator...
:(
Looks like your csh's built-in test operator does not support "-s", try this
set host=0
if ( /bin/test -s /usr/bin/1234.xcf ) set host="something"
If it doesn't work, try it even with curly...
5,066
Posted By pseudocoder
Looks like you have already defined it correctly,...
Looks like you have already defined it correctly, when you were talking about "reads entire content in-memory".


Why not? :D

However I tested following and it worked, but there is at least one...
5,066
Posted By pseudocoder
I've created a file with 1.000.000 lines and run...
I've created a file with 1.000.000 lines and run a while read line loop. When the loop was processing the ~150.000 line, I deleted the processed file from another terminal and the while loop did not...
17,039
Posted By kchinnam
Try this .. ls -l /etc/*.txt > /dev/null 2>&1;...
Try this ..
ls -l /etc/*.txt > /dev/null 2>&1; result=$?

# check result
if [ $result -ne 0 ]; then
echo "command failed "
else
echo "command succeeded "
fi

If you are bent on using...
Showing results 1 to 5 of 5

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