Search Results

Search: Posts Made By: agn
1,284
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
16,631
Posted By agn
[~]> echo...
[~]> echo "73423555","73423556","73423557","73423558","73423559" | awk 'BEGIN { RS="," }1'
73423555
73423556
73423557
73423558
73423559
1,883
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,237
Posted By agn
$ var='hello' $ nawk -v v=$var 'BEGIN{ print v...
$ var='hello'
$ nawk -v v=$var 'BEGIN{ print v }'
hello
2,608
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,340
Posted By agn
$ echo 'asdad%sdasd%sdsdf' | sed 's/%/ \ > /g' ...
$ echo 'asdad%sdasd%sdsdf' | sed 's/%/ \
> /g'
asdad
sdasd
sdsdf
8,413
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,413
Posted By agn
What's your $TERM set to ? $ echo $TERM
What's your $TERM set to ?


$ echo $TERM
2,119
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.
997
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
1,102
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,488
Posted By agn
Try the docs...
Try the docs (http://search.cpan.org/~jenda/Mail-Sender-0.8.16/Sender.pm#EXAMPLES)
1,768
Posted By agn
Try, $ eval $v1=$v2 $ echo $table1 ...
Try,


$ eval $v1=$v2
$ echo $table1
20000
Forum: Red Hat 07-26-2010
4,862
Posted By agn
Try, RPM Search (http://rpm.pbone.net/).
Try, RPM Search (http://rpm.pbone.net/).
1,230
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,003
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.
1,918
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,218
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,708
Posted By agn
$ basename /home/Desktop/example/audio.html .html...
$ basename /home/Desktop/example/audio.html .html
audio
12,229
Posted By agn
echo...
echo '\\194.185.82.188\CMSRepository\EncodingProfiles' | sed 's%\\%\\\\\\%g'
Showing results 1 to 20 of 20

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