Search Results

Search: Posts Made By: bankai
Forum: Linux 07-28-2010
14,842
Posted By bankai
VAR=`grep -n "text" <file>`
VAR=`grep -n "text" <file>`
2,068
Posted By bankai
Scripts should be written with portability in...
Scripts should be written with portability in mind, hence the use of bourne syntax is highly advised
2,068
Posted By bankai
Set your input field separator $ ...
Set your input field separator


$ IFS=$'\n'
$ for i in `cat file_name`
>do
>echo $i;
>done
7,468
Posted By bankai
You have two choices in a situation like this: ...
You have two choices in a situation like this:

Setup a port forward from site A to site B, then VNC through that

from site A

# ssh -L 8080:windows_machine:vnc_port site_B
# vncviewer...
2,169
Posted By bankai
Even though you have your answer, the last...
Even though you have your answer, the last reboot/boot time can be found with the 'last' command
2,779
Posted By bankai
Find all lines starting with a number, place that...
Find all lines starting with a number, place that in buffer one. Then write 63 followed by buffer one



Find all lines starting with a number and replace the start of line with 63



Find...
2,779
Posted By bankai
Try something like this sed...
Try something like this

sed 's/\(^[0-9]\)/63\1/' <file>
Showing results 1 to 7 of 7

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