Search Results

Search: Posts Made By: agn
1,243
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,585
Posted By agn
[~]> echo...
[~]> echo "73423555","73423556","73423557","73423558","73423559" | awk 'BEGIN { RS="," }1'
73423555
73423556
73423557
73423558
73423559
1,848
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,203
Posted By agn
$ var='hello' $ nawk -v v=$var 'BEGIN{ print v...
$ var='hello'
$ nawk -v v=$var 'BEGIN{ print v }'
hello
2,602
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,334
Posted By agn
$ echo 'asdad%sdasd%sdsdf' | sed 's/%/ \ > /g' ...
$ echo 'asdad%sdasd%sdsdf' | sed 's/%/ \
> /g'
asdad
sdasd
sdsdf
8,395
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,395
Posted By agn
What's your $TERM set to ? $ echo $TERM
What's your $TERM set to ?


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


$ eval $v1=$v2
$ echo $table1
20000
Forum: Red Hat 07-26-2010
4,850
Posted By agn
Try, RPM Search (http://rpm.pbone.net/).
Try, RPM Search (http://rpm.pbone.net/).
1,225
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
3,995
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,907
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,213
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,703
Posted By agn
$ basename /home/Desktop/example/audio.html .html...
$ basename /home/Desktop/example/audio.html .html
audio
12,216
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 12:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy