Search Results

Search: Posts Made By: mudhireddy
33,918
Posted By mudhireddy
1) sed -n '900,$p' file_name
1) sed -n '900,$p' file_name
12,604
Posted By mudhireddy
Hi spare_ribs, Thanks for the info. Yes i...
Hi spare_ribs,

Thanks for the info. Yes i am able to get away with printf.
36,112
Posted By mudhireddy
You can use sed like sed 's/^..//g' ...
You can use sed like

sed 's/^..//g' FILE_NAME
12,604
Posted By mudhireddy
what is ksh equivalent of bash echo -n ?
Hi folks,

I need to stop printing a new line after echoing a string in KSH. i know bash provides

echo -n "string"

what is the ksh equivalent for this ?
1,300
Posted By mudhireddy
You can do that by awk ' $3 ==...
You can do that by

awk ' $3 == "~ZZ~VISTN" { print "whatever you want"} \
$3 == "~ZZ~04000" { print "whatever you want"} \
$3 == "Add any string youwant" { print...
5,186
Posted By mudhireddy
I dont think sed will work because data in FILE...
I dont think sed will work because data in FILE can contain TABS, if we replace TABS, original data will also get replaced.

I got the answer , anyway Thanks

yes "" |head -`wc -l FILE_1 | awk...
5,186
Posted By mudhireddy
Hi C2B2 I know paste default delimeter is...
Hi C2B2

I know paste default delimeter is TAB but it will only put one char as delimeter between files even though you give multiple TABS, meaning

paste -d"\t" FILE1 FILE2 will...
5,186
Posted By mudhireddy
Question on Paste command
Hello everyone,

This is Rameshreddy. I like this forum and its nice to share everyone's experience here and one can learn a lot from here. Appreciate the moderators especially.

Coming...
1,792
Posted By mudhireddy
Sorry i read only second part and you can do the...
Sorry i read only second part and you can do the second part with


awk '{if (NR == 2) { $1=$1"\n"; $2="WHATEVER "$2;} print }' FILE_NAME

The only problem i see with this is, it will add extra...
1,957
Posted By mudhireddy
Try this AWK command, It should work awk...
Try this AWK command, It should work

awk '{if ($1 == "#" && $2 == "Begin" && $3 == "customizations" && NF == 3) $NF=$NF"\n$AVARIABLE/dir1/dir2;export $AVARIABLE"; print }' file_name

Have fun
Showing results 1 to 10 of 10

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