Search Results

Search: Posts Made By: rockdude
1,243
Posted By rockdude
awk help
Hi Guys,

I've to print a block of lines that starts with a keyword CREATE and ends with ; using awk command is there a way to do this?

awk '{if ($1=="CREATE" ) {print $0}}' filename.

This...
Forum: Solaris 04-15-2008
4,242
Posted By rockdude
Hi, Earlier I have mentioned the command...
Hi,

Earlier I have mentioned the command wrongly.

Input:
$ cat samp
1234 "6734" "DSS" "8887578384" "ABC PRIVATE LMT REGNO 6" 3245

Output of the unix command:

$ sed -e 's/ / /g' -e 's/...
Forum: Solaris 04-15-2008
4,242
Posted By rockdude
Hi All, Thanks for the detailed explanation....
Hi All,

Thanks for the detailed explanation.

I was just wondering how we can handle multiple spaces in such case. Please find the below example

1234 "6734" "DSS" "8887578384" "ABC PRIVATE...
Forum: Solaris 04-12-2008
4,242
Posted By rockdude
Hi, Can you please help me explain what the...
Hi,

Can you please help me explain what the second statement in sed does

's/\("[^"|][^"|]*\)|\([^|][^|]*|\)/\1 \2

I didnt get why "[^"|] and ^| is specified twice after special/escape...
Forum: Solaris 04-12-2008
4,242
Posted By rockdude
Excellent answer It worked... Many thanks I...
Excellent answer It worked...

Many thanks I know the command is bit long but ever lasting one..

This site is kewl I'm loving it...

Thanks buddy..
Dude :b:
Forum: Solaris 04-12-2008
4,242
Posted By rockdude
Unix Command
Hi,

This doesnt work :mad: any other inputs...

Also one more thing to add..

I should have double codes with in the strings. As I said earlier.. the o/p should be like below
...
Forum: Solaris 04-12-2008
4,242
Posted By rockdude
Unix Command
Hi All,

Can some one help me in providing the unix command to ignore the "" in a line. To explain in detail

I have a file which is space delimited.

Ex
1 2 3 4 "hello" "rock dude" 5 6 7
...
Showing results 1 to 7 of 7

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