Search Results

Search: Posts Made By: Siva SQL
3,042
Posted By Don Cragun
On systems that limit line lengths in sed and...
On systems that limit line lengths in sed and awk, the following awk script should still work as long as the data in the field you want to print does not contain a greater than character (>):
awk...
3,042
Posted By RavinderSingh13
Hello Siva_SQL, Could you please try...
Hello Siva_SQL,

Could you please try following and let me know if this helps.

awk '{match($0,/<corspd_num>.*<\/corspd_num>/);print substr($0,RSTART+12,RLENGTH-25)}' Input_file


...
1,379
Posted By Yoda
The ^M a CR (Carriage Return) is a Control...
The ^M a CR (Carriage Return) is a Control Character (http://en.wikipedia.org/wiki/Carriage_return)

You can remove carriage return in your file using below tr command:
tr -d '\r' < infile >...
9,355
Posted By vidyadhar85
No need to cat a file for grep thats useless use...
No need to cat a file for grep thats useless use of cat :)

try below

awk -F"/" '/oracle/{A[$5]=$1"/"$2"/"$3"/"$4"/"$5}END{for(i in A){sub("#","",A[i]);print A[i]}}' filename
9,355
Posted By BhushanPathak
You have a file "saw_batch_drive_cmd", from which...
You have a file "saw_batch_drive_cmd", from which you want to get unique directories. Will the file contents be always similar to the sample one you have posted?

Try the following commands on the...
1,708
Posted By hanson44
This should work: $ grep...
This should work:
$ grep '/app/oracle/build_lib/pkg3[23].*2012' scj_drive_commands
/app/oracle/build_lib/pkg320.0_20120927/ddl/scj_build_pre_rt.sh SID TEST_NUM 20120927 320.0 N N...
1,708
Posted By zaxxon
Seems you are missing several dots in front of...
Seems you are missing several dots in front of the stars, if you want to have any number of any type of character:

egrep '/app/oracle/build_lib/pkg32.*2012.*|/app/oracle/build_lib/pkg33.*2012.*'...
22,985
Posted By zaxxon
Anything you tried yourself? find . -type f...
Anything you tried yourself?

find . -type f -name "*.[sS][qQ][lL]"
# or
find . -type f| grep -i sql
Showing results 1 to 8 of 8

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