Search Results

Search: Posts Made By: nsk
11,583
Posted By nsk
Command line arguments with multiple values
how can I pass multiple values from command line arguments

example
script.sh -arg1 op1 -arg2 op1 op2 op3
6,171
Posted By nsk
somehow I am not getting expected from this code...
somehow I am not getting expected from this code also

Here is an awk program to remove last occurrence of pattern and from a file:

Code:
awk ' { a[++i]=$0 l = i; } END { ...
6,171
Posted By nsk
no trailing empty line in the output of $t
no trailing empty line in the output of $t
6,171
Posted By nsk
here is the command I am using. echo $t| sed '$...
here is the command I am using.
echo $t| sed '$ s:and::'
here is the out from $t
on a.id1 = b.id1 and
on a.id2 = b.id2 and
on a.id3 = b.id3 and

Thanks
6,171
Posted By nsk
Thanks for your quick reply RudiC.But this...
Thanks for your quick reply RudiC.But this command is removing all "and"s from each line.
I am getting out put like this.
on a.id1 = b.id1
on a.id2 = b.id2
on a.id3 = b.id3

Thanks
6,171
Posted By nsk
How to delete last occurence of word using Linux command?
Hi all,
I am trying to delete last occurrence of word using sed command.
for example.
I have input like this
on a.id1 = b.id1 and
on a.id2 = b.id2 and
on a.id3 = b.id3 and
and I am expecting...
Showing results 1 to 6 of 6

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