Search Results

Search: Posts Made By: pdathu
3,579
Posted By RudiC
Phew, what an ordeal! Far from elegant, utterly...
Phew, what an ordeal! Far from elegant, utterly clumsy, but it does what is requested:awk '
BEGIN {ARGV[ARGC++] = ARGV[1]
HD[++HDCNT] = "InsertTime"
...
3,579
Posted By Don Cragun
Hi pdathu, Someone who has been posting...
Hi pdathu,
Someone who has been posting questions to this forum for well over 4 years is not "a newbie who has never had a chance to work on the advanced commands".

You may have chosen to use...
3,579
Posted By RudiC
Well, one pass only, and slightly prettier:awk ' ...
Well, one pass only, and slightly prettier:awk '
BEGIN {HD[++HDCNT] = "InsertTime"
HD[++HDCNT] = "DocID"
}

/^#col/ {FS = "\047"
...
1,321
Posted By vgersh99
given a ${FILE}/a/b/c_d_e.txt get an 'e'. an...
given a ${FILE}/a/b/c_d_e.txt get an 'e'.
an alternative solution might be:

echo '/a/b/c_d_e.txt' | nawk -F'[/_.]' '{print $(NF-1)}'
1,387
Posted By Shell_Life
What about this: sed -e 's/record/ebcdic...
What about this:
sed -e 's/record/ebcdic record/' -e 's/integer (10) present_id;/string (12) present_id;/' Inp_File > Out_File
3
1,357
Posted By Chubler_XL
opt 2>/dev/null this is just redirecting anything...
opt 2>/dev/null this is just redirecting anything output to stderr (typically getopts will print some sort of message about illegal options eg "getopts: -i option unknown" to sterr). For example:
$...
2,647
Posted By DukeNuke2
read "man test" for mor information about the...
read "man test" for mor information about the condition topic...

and please use code tags for terminal output or script sniplets!
2,647
Posted By ctsgnb
Yes, if [[ -z $VAR ]] condition is true if $VAR...
Yes,
if [[ -z $VAR ]] condition is true if $VAR is empty
if [[ -n $VAR ]] condition is true if $VAR is not empty
Showing results 1 to 8 of 8

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