Search Results

Search: Posts Made By: Machha
1,602
Posted By Machha
Thanks..All, Got it root:389$ cat...
Thanks..All,

Got it

root:389$ cat test1.txt| sed 's/\(.*\)\[\(.*\)\]:\(.*\) \(.*\)/\2/'
21455
324494
root:390$ cat test1.txt| sed 's/\(.*\)\[\(.*\)\]:\(.*\) \(.*\)/\3/'
3
38
1,602
Posted By Machha
Nope its not working for me Getting as below...
Nope its not working for me

Getting as below

root:375$ cat test1.txt
ABCD Test[21455]:3 ZZZZYYYZZ
root:376$ cat test1.txt | awk -F"[\]:\[]" '{ print $2" "$4; }' | read a b
root:377$ echo $a...
1,602
Posted By Machha
Getting this sed: command garbled:...
Getting this

sed: command garbled: s/.*\[\(.*\)\]:\(.*\) .*/First part=\1

---------- Post updated at 02:29 PM ---------- Previous update was at 02:28 PM ----------

Command which I'm trying...
1,602
Posted By Machha
Help: Need to Print a string from a word
Hi Folks

Can you please help me to grep a word from below test file

Below is the file looks like
ABCD Test[21455]:3 ZZZZYYYZZ
ABCD TEST[324494]:38 XXXYYYZZZ

I need below output
echo...
Showing results 1 to 4 of 4

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