Search Results

Search: Posts Made By: BhushanPathak
928
Posted By BhushanPathak
Not sure why read command is not working for you....
Not sure why read command is not working for you. It works fine for me. Is it necessary that the script should wait for you to hit enter key every time [in each loop]?

Thanks

Bhushan Pathak
928
Posted By BhushanPathak
Try using double quotes for the sed command - ...
Try using double quotes for the sed command -

file="/tmp/name.out"
while IFS= read -r line
do
echo "---------------Change $line:"
sed -i "s/FFFFF/$line/g" /tmp/loadfilt/load.$line.ldif
read...
9,373
Posted By BhushanPathak
The sed part removes the leading # character from...
The sed part removes the leading # character from the list of files, if present
6,221
Posted By BhushanPathak
You can use following curl & unzip commands in...
You can use following curl & unzip commands in your shell script -

curl -O HTTP_URL_FOR_ZIP_FILE
unzip ZIP_FILE_NAME -d EXTRACT_DIR
1,320
Posted By BhushanPathak
Try this to go to previous file- :prev ...
Try this to go to previous file-

:prev

Thanks
Bhushan Pathak
9,373
Posted By BhushanPathak
You have a file "saw_batch_drive_cmd", from which...
You have a file "saw_batch_drive_cmd", from which you want to get unique directories. Will the file contents be always similar to the sample one you have posted?

Try the following commands on the...
6,440
Posted By BhushanPathak
Editing iptables rules with custom chain
Hello,


I have iptables service running on my CentOS5 server. It has approx 50 rules right now.


The problem I am facing now is as follows -

I have to define a new chain in the filter...
Showing results 1 to 7 of 7

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