Search Results

Search: Posts Made By: agn
1,608
Posted By agn
Try: awk -F',' 'BEGIN { OFS=","; p=0 } $1...
Try:


awk -F',' 'BEGIN { OFS=","; p=0 } $1 != 0 { p = $1 } { $1 = p }1' file
17,277
Posted By agn
[~]> echo...
[~]> echo "73423555","73423556","73423557","73423558","73423559" | awk 'BEGIN { RS="," }1'
73423555
73423556
73423557
73423558
73423559
12,441
Posted By agn
echo...
echo '\\194.185.82.188\CMSRepository\EncodingProfiles' | sed 's%\\%\\\\\\%g'
2,115
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
2,776
Posted By agn
Try something like this, $ cat /tmp/in ...
Try something like this,


$ cat /tmp/in
host=www.test.com
port=8080
binding="dynamic" or "other" or "something else"
key1=value1
key2=value2
key3=value4
policy="<wsp...
2,472
Posted By agn
$ var='hello' $ nawk -v v=$var 'BEGIN{ print v...
$ var='hello'
$ nawk -v v=$var 'BEGIN{ print v }'
hello
2,454
Posted By agn
$ echo 'asdad%sdasd%sdsdf' | sed 's/%/ \ > /g' ...
$ echo 'asdad%sdasd%sdsdf' | sed 's/%/ \
> /g'
asdad
sdasd
sdsdf
2,220
Posted By agn
You could add your script to /etc/init.d and then...
You could add your script to /etc/init.d and then add symlinks in runlevel directories (/etc/rc?.d). Or you could append your script to rc.local if your system uses one.
1,046
Posted By agn
Yes, you can. This is something I usually use in...
Yes, you can. This is something I usually use in scripts


ts=$(date +%d%m%Y)
tar cvf backup-$ts.tar /path/to/files
8,716
Posted By agn
Try $ TERM=xterm vim Once vim is...
Try


$ TERM=xterm vim


Once vim is open, try 'syntax on' if it's not already in your .vimrc.
8,716
Posted By agn
What's your $TERM set to ? $ echo $TERM
What's your $TERM set to ?


$ echo $TERM
1,133
Posted By agn
Try, $ sed -n '/Final/,/^<pg name="path"...
Try,


$ sed -n '/Final/,/^<pg name="path" type="Path">$/p' file
Final
.....
.....
....
<pg name="path" type="Path">
2,626
Posted By agn
Try the docs...
Try the docs (http://search.cpan.org/~jenda/Mail-Sender-0.8.16/Sender.pm#EXAMPLES)
1,847
Posted By agn
Try, $ eval $v1=$v2 $ echo $table1 ...
Try,


$ eval $v1=$v2
$ echo $table1
20000
Forum: Red Hat 07-26-2010
5,023
Posted By agn
Try, RPM Search (http://rpm.pbone.net/).
Try, RPM Search (http://rpm.pbone.net/).
1,285
Posted By agn
$ cat buf Vivek 50 Ram 34 Hulk 45 Vivek...
$ cat buf
Vivek 50
Ram 34
Hulk 45
Vivek 23
Ram 23
Vivek 55
$ perl -anle '$x{$F[0]}+=$F[1]; END { foreach (keys %x) { print "$_ $x{$_}" } }' buf
Ram 57
Hulk 45
Vivek 128
4,133
Posted By agn
If you're on Linux and have udev, this can be...
If you're on Linux and have udev, this can be accomplished by adding a rule to udev.
2,404
Posted By agn
Try, $ nawk -F '|' 'BEGIN { i=1;OFS="|" }...
Try,


$ nawk -F '|' 'BEGIN { i=1;OFS="|" } NR==FNR { _[i]=$1; i++ ; next } { $(NF-1)=_[FNR]; print }' file_1 file_2
1,345
Posted By agn
Try, $ awk -F'=' '$2 > a { a=$2;ip=$1 }...
Try,


$ awk -F'=' '$2 > a { a=$2;ip=$1 } END { print ip }' inputfile
1,803
Posted By agn
$ basename /home/Desktop/example/audio.html .html...
$ basename /home/Desktop/example/audio.html .html
audio
Showing results 1 to 20 of 20

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