Search Results

Search: Posts Made By: shtobias
Forum: Red Hat 09-17-2010
19,853
Posted By frank_rizzo
set this parameter in vsftpd.conf per the...
set this parameter in vsftpd.conf

per the man page.

use_localtime
If enabled, vsftpd will display directory listings with the time in your local
time zone. The default is to display GMT....
5,274
Posted By rdcwayx
Do you try my command, in your case, grep -f will...
Do you try my command, in your case, grep -f will be more simple.
5,274
Posted By pravin27
Something like this, awk...
Something like this,


awk 'NR==FNR{a[$1$2]=$0;next} a[$1$2] {print $0}' nokia_list.txt nokia.txt
5,274
Posted By pravin27
Hi, It's working fine at my end. ...
Hi,

It's working fine at my end.



[root@powerbroker pravin]# cat f3
nokia1100 123,000
nokia2100 66,000
samsung123 11,000
samsung456 23,000
iphone432 234,000
iphone678 ...
2,817
Posted By kurumi
#!/bin/bash while read -r LINE do ...
#!/bin/bash

while read -r LINE
do
case "$LINE" in
[0-9]* ) LINE="63${LINE}"
esac
echo "$LINE"
done < "myfile"
2,817
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,817
Posted By kevintse
The AWK way: awk '/^[0-9]+/ { print "63"$0;...
The AWK way:
awk '/^[0-9]+/ { print "63"$0; next } { print }' infile
2,817
Posted By Scrutinizer
Alternatively, sed '/^[0-9]/s/^/63/' infile
Alternatively,
sed '/^[0-9]/s/^/63/' infile
2,817
Posted By bankai
Try something like this sed...
Try something like this

sed 's/\(^[0-9]\)/63\1/' <file>
1,664
Posted By a_programmer
sort a.txt > a1.txt sort b.txt > b1.txt ...
sort a.txt > a1.txt
sort b.txt > b1.txt

diff a1.txt b1.txt
2,926
Posted By busyboy
try tr -s " " " " <filename or ...
try

tr -s " " " " <filename

or

GNU sed

sed -r 's/[ ]{2}/ /g' filename

Non-GNU sed

sed 's/[ ]\{2,\}/g' filename

Please see this is only to remove 2 or more consecutive spaces NOT...
Showing results 1 to 11 of 11

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