Search Results

Search: Posts Made By: forroughuse
2,397
Posted By forroughuse
Hi chindu.anu, I am able to switch to with...
Hi chindu.anu,

I am able to switch to with ":n" and ":rew".
but I not able to save both file. when i did ":wq" only one is saved.

any idea how to save all the files in multiple editor?
...
1,631
Posted By forroughuse
Hi Diddy, Can you give example of what you...
Hi Diddy,

Can you give example of what you are looking for.
1,631
Posted By forroughuse
Hi Diddy, u can try something like this: ...
Hi Diddy,

u can try something like this:


bash-2.03$ cat brk.sh
n=`grep -n "#Time" rough1.txt|awk -F":" '{print $1 }'`
m=`expr $n - 1 `
sed -n '1,'$m'p' rough1.txt > file1.file_prod_reg...
1,543
Posted By forroughuse
Hi Johanni, Just a thought, as u know...
Hi Johanni,

Just a thought,
as u know how to add word in the last by using sed command , so first simply remove that word from the file ( u can achive this again by using sed command to replace...
8,142
Posted By forroughuse
sharing between vmware (ubuntu) and windows7
Hi Friends,

I have windows7 in my system and I installed vmware having ubuntu OS, I am able to work in both independently.

But I want to share some text file from WINDOWS7 to the vmware...
1,670
Posted By forroughuse
Hi ganraveh, I don't know whether i...
Hi ganraveh,

I don't know whether i understand your requirement currectly or not.
you can make a shell script, something like this:

bash-2.03$ cat sd.sh
echo "enter line number: "
read n...
19,523
Posted By forroughuse
Hi rdcwayx , You are awesome in awk. ...
Hi rdcwayx ,

You are awesome in awk.

I am trying to understand your given solution/code which you have given :

awk -F, '{for (i=2;i<=NF;i++) a[$i]=a[$i]==""?$1:a[$i] FS $1}
END{for (i...
5,087
Posted By forroughuse
Hi ygemici, Nice :) $ sed '1~2s/.*...
Hi ygemici,

Nice :)


$ sed '1~2s/.* \([^ ]* [^ ]* [^ ]* [^ ]*\)/\1/'


Can you please explain me how it works/run.
1,301
Posted By forroughuse
Hi fpmurphy, Thanks for the reply. but I...
Hi fpmurphy,

Thanks for the reply.
but I didn't get what you want to ask


Can you please elaborate more what "locale" means.

regards,
1,301
Posted By forroughuse
how to handle french char. in SunOS
Hi Friends,

Need help regarding how to handle french char. in SunOS.

I have to remove blank line from 100 files ( which also has some french char.), so I put all those file in unix (SunOS) by...
1,532
Posted By forroughuse
total count of a word in the files
Hi Friends,
Need help regarding counting the word "friend" in files test1.txt and test2.txt. ( there is no gap/space between word )

cat test1.txt
himynameisrajandiamfriendofrajeshfriend...
1,463
Posted By forroughuse
Hi Klashxx, thanks for the response, I...
Hi Klashxx,
thanks for the response, I understand what you said above, but together how it delete the last word.
Sorry, I am not that much expert. Can you please let me know how together it...
1,463
Posted By forroughuse
understanding sed command
Hi Friends,

I need a small help in understanding the below sed command.

$ cat t4.txt
1 root 1 58 0 888K 368K sleep 4:06 0.00% init
1 root 1 58 0 888K ...
2,397
Posted By forroughuse
hi all, many thnks for the response. :)
hi all,
many thnks for the response. :)
2,397
Posted By forroughuse
multiple vi editor
Hi Friends,

Can some1 pls tell me how to do multiple vi editor(files) in a single screen and how to switch from file to another in that.

Thanks
4,326
Posted By forroughuse
Hi Ahamed, many thnks for the reply yes , I...
Hi Ahamed,
many thnks for the reply
yes , I missed to put "#!/bin/ksh".
Now it is working fine. :)
4,326
Posted By forroughuse
array and awk match function in SunOS 5.10
Hi Experts,

Need help in writing a shell script in SunOS 5.10. I want to use array but it is not running in SunOs where as it is running in unix. pls help
Want to print the alue store in array...
1,248
Posted By forroughuse
shell script
Hi All,

I need help in unix

I have a file which can content in any order.
For example: file1.txt has:

Age|Name|Sal|Comm
21|Raj|20000|100
20|Donald|1000|0
18|Steve|80000|5000
.
.

The...
Showing results 1 to 18 of 18

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