Search Results

Search: Posts Made By: 116@434
Forum: AIX 04-05-2013
3,527
Posted By 116@434
Output is as you expect i.e. 06/25/2010 ...
Output is as you expect i.e. 06/25/2010
working:
months is assigned a string with 3 chars for each month
getting value of month in then pure mathematics (i.e. position of your input month /3...
Forum: AIX 04-05-2013
3,527
Posted By 116@434
date=$1 looks like a wrong assignment, change it...
date=$1 looks like a wrong assignment, change it to $2. And you might need to change the print's variables placements.

---------- Post updated at 01:36 AM ---------- Previous update was at 01:34...
1,305
Posted By 116@434
sed -e "s:<?xml version='1.0'...
sed -e "s:<?xml version='1.0' encoding='UTF-8'?>::" -e "s:</*row_set>::g" -e "/^$/d"
8,069
Posted By 116@434
why don't you use regular expressions? Something...
why don't you use regular expressions? Something like
$NF ~ /.*C$/ { print > "splitC.csv" }
2,695
Posted By 116@434
sed -n 's/$var3/$var3 --dry-run/g' did not go...
sed -n 's/$var3/$var3 --dry-run/g' did not go under variable interpolation, is that what you mean by "not executing"?? In that case you'll have to use " instead of ' for your sed script.
1,125
Posted By 116@434
Try this: echo $eachline | dirname |...
Try this:


echo $eachline | dirname | sed 's:/backup/:/backup_path/:'
40,919
Posted By 116@434
floor echo 7.2|cut -f1 -d"." ceil echo...
floor
echo 7.2|cut -f1 -d"."
ceil

echo $(( `echo 7.2|cut -f1 -d"."` + 1 ))
Forum: Linux 05-11-2011
13,822
Posted By 116@434
sed "s/$/^M/" filename
sed "s/$/^M/" filename
24,764
Posted By 116@434
U can use below sed 's/\[.*\]//' file_name
U can use below
sed 's/\[.*\]//' file_name
2,008
Posted By 116@434
Get the user names from /etc/passwd file :)
Get the user names from /etc/passwd file :)
3,265
Posted By 116@434
Hey, it does not seem to be a problem exactly...
Hey, it does not seem to be a problem exactly with your code.

One possible fallout can be that your c<space>c is really a c<tab>c, but while on display it looks like one single space. A <tab>...
1,514
Posted By 116@434
Use this in that case: :up1 ...
Use this in that case:


:up1
s/\("[^,]*\),\(.*"\),/\1!@%\2,/
t up1
:up2
s/\("[^,]*\),\(.*"\)$/\1!@%\2/
t up2



If you notice carefully, one double quotes either ends with comma or...
1,514
Posted By 116@434
Try this sed script :up ...
Try this sed script


:up
s/\("[^,]*\),\(.*"\)/\1!@%\2/
t up
2,493
Posted By 116@434
Try this: awk -F'"' '{gsub("[:/]","",$2);...
Try this:

awk -F'"' '{gsub("[:/]","",$2); print $0; }' myFile
8,211
Posted By 116@434
or even this way: awk ' { arr[$1] = arr[$1] $2...
or even this way:
awk ' { arr[$1] = arr[$1] $2 } END {for (i in arr) print i arr[i] }' module1 module2
8,211
Posted By 116@434
I was referring something similar to this: cat...
I was referring something similar to this:
cat file1 file2 | awk ' { arr[$1] = arr[$1] $2 } END {for (i in arr) print i arr[i] }'
8,211
Posted By 116@434
Use this to collect the required info in a hash ...
Use this to collect the required info in a hash
{ reg[$1] = reg[$1] $2 }
then in the END print all the stuff using a loop.
4,153
Posted By 116@434
~ is basically your user's home directory. If the...
~ is basically your user's home directory. If the path is /trial/dev mention it as


cd /trial/dev/
1,441
Posted By 116@434
On line 6 pls try this echo "##########...
On line 6 pls try this

echo "########## strat Gmake $line #######" >>$ERROR_LOG
10,206
Posted By 116@434
To check for file in a loop you can do this: ...
To check for file in a loop you can do this:

until [ -f "myfilename" ]
do
sleep 30 ##set it so that does not add load on your system
done

Rest logic you can add I guess.
1,948
Posted By 116@434
or you could also try this sed -i...
or you could also try this

sed -i 's/DATE_TIME = .*/DATE_TIME ='"`date`"'/' file1.txt
Showing results 1 to 21 of 21

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