Search Results

Search: Posts Made By: Antony Ankrose
1,174
Posted By Antony Ankrose
understand sed
cat teledir.txt
jai sharma 25853670
chanchal singhvi 9831545629
anil aggarwal 9830263298
shyam saksena 23217847
lalit chowdury 26688726

If i use the below command , it is giving me the output...
2,354
Posted By Antony Ankrose
This works , thanks for giving me the solution....
This works , thanks for giving me the solution. Now i understand that issue is with the extra space.

You are awesome
2,354
Posted By Antony Ankrose
/opt/oracle/work/Antony/Shell_Script> cut -d'|'...
/opt/oracle/work/Antony/Shell_Script> cut -d'|' -f4 emp.1st | sort -u | od -c
0000000 a c c o u n t s \t \n a d m i n \t
0000020 \t \n m a r k e t i ...
2,354
Posted By Antony Ankrose
Thanks for your suggestion Even if i sort...
Thanks for your suggestion

Even if i sort with sort -u, why am i getting sales and Marketing twice ?

/opt/oracle/work/Antony/Shell_Script> cut -d'|' -f4 emp.1st | sort -u
accounts
admin...
2,354
Posted By Antony Ankrose
Sort & Uniq -u
Hi All,

Below the actual file which i like to sort and Uniq -u

/opt/oracle/work/Antony/Shell_Script> cat emp.1st
2233|a.k. shukula |g.m. |sales |12/12/52 ...
13,439
Posted By Antony Ankrose
Cut command
Hi All,

I am a beginner learning shell script, Would it be possible to use -c and -f in cut command together ?

Example :

/opt/oracle/work/Antony/Shell_Script> cat shortlist
2233|a.k....
1,393
Posted By Antony Ankrose
I am learning shell scripting and i would like to understand how sort -k3,3 -k 4,4 short* works
Please help me understand how sort -k3,3 -k 4,4 short* works , is it sorting 3 and 4 th field ? what is the use of specifying 3,3 and 4,4 in sort and what is actually does and i see sort -k3 short*...
3,236
Posted By Antony Ankrose
Now i got it clarified , Thanks again
Now i got it clarified , Thanks again
3,236
Posted By Antony Ankrose
Thanks Corona688 Still i am not able to get...
Thanks Corona688

Still i am not able to get you completely what you say
^ Matches the beginning of lines.

. Matches any single character.

Which means the command matches any character in...
3,236
Posted By Antony Ankrose
Thanks you very much , i got it clarified. ...
Thanks you very much , i got it clarified.

Please help me to understand sed statement

Question 2
-----------


Code:
/opt/oracle/work/antony> ls -l | sed -n '/^.\{2,3\}w/p'
-rw-r----- ...
3,236
Posted By Antony Ankrose
I am learning regular expression in sed,Please help me understand the use curly bracket in sed,
I am learning SED and just following the shell scripting book, i have trouble understanding the grep and sed statement,

Question : 1
__________
/opt/oracle/work/antony>cat teledir.txt
jai...
Showing results 1 to 11 of 11

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