Search Results

Search: Posts Made By: garfish
2,978
Posted By elixir_sinari
temp is a temporary file which stores the edited...
temp is a temporary file which stores the edited file. What command did you run? If you don't want to use a temporary file explicitly, try:
echo -e '%s/,[ \t]*$//\nx'|ex file
1,939
Posted By agn
Instead of using multiple echo's, try using here...
Instead of using multiple echo's, try using here document.


cat > resultofsample.sh <<EOF
#!/bin/bash
# codes
EOF
1,939
Posted By michaelrozar17
Im not sure how to execute Ctrl + d within a...
Im not sure how to execute Ctrl + d within a script. But could try as below
#!/bin/bash
ls -l
#cat > resultofsample.sh
echo "#!/bin/bash" >resultofsample.sh
echo "codes" >>resultofsample.sh
1,265
Posted By citaylor
Is the wget running as a foreground process or a...
Is the wget running as a foreground process or a background process?
If it is the former, then you obviously know when its finished.
If its a background process that has been started in the current...
1,265
Posted By frans
while pgrep wget > /dev/null do codes... ...
while pgrep wget > /dev/null
do
codes...
done
Showing results 1 to 5 of 5

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