Search Results

Search: Posts Made By: jawsnnn
6,605
Posted By jawsnnn
I did make the choice of not contributing to this...
I did make the choice of not contributing to this forum anymore shortly after checking out which is why I did not see your reply. Sorry if this comes too late, but I believe you are in violations of...
6,605
Posted By jawsnnn
I appreciate the pointer to the updated code tags...
I appreciate the pointer to the updated code tags by sea. And I also agree with his later comment that mentions that I may have been fixated on a specific tool for my solution. However...

I will...
6,605
Posted By jawsnnn
I have been out for a while, and tags seem to...
I have been out for a while, and tags seem to have changed since then. The way I remember it, this site used to be about people responding to questions instead of pointing out duplicity. I will have...
6,605
Posted By jawsnnn
Parallel processing for functions in xargs
I have a script (ksh) which tries to run a function in parallel for performance gains. I am also trying to limit the number of parallel child processes to avoid overloading the system by using a...
2,506
Posted By jawsnnn
I am sorry it isn't clear from the message, I was...
I am sorry it isn't clear from the message, I was replying to the message above which suggested using sequential commands for this. I will try your method and see it if suits my need. Thanks for your...
2,506
Posted By jawsnnn
I am not really running echo statements :) that...
I am not really running echo statements :) that was just an example. The actual statements are function calls to SQL procedures which can take 10-15 minutes to complete. I want to trigger these in...
2,506
Posted By jawsnnn
Capture output of command triggered in background
Is there any way to trigger a sequence of commands in parallel and capture their output in variables? e.g. something on the following lines


x=`echo "X" &`
y=`echo "Y" &`
z=`echo "Z" &`


so...
2,328
Posted By jawsnnn
The "today -1 day" option is closest to what...
The "today -1 day" option is closest to what would help me.

As long as I know the date against which comparison needs to be done, any of the other suggested options would work (including the one...
2,328
Posted By jawsnnn
Well, it is indeed peculiar. I did ask why it was...
Well, it is indeed peculiar. I did ask why it was not enabled... And the response I got was it is "not allowed". When I asked why, I got the cryptic answer "for security purposes"... But that is an...
2,328
Posted By jawsnnn
touch -t is not allowed.
touch -t is not allowed.
2,328
Posted By jawsnnn
Date comparisons
Hi,

I want to perform a simple date comparisons, i.e. select all files modified after a certain date (say 12-feb-2011)

I do not have the option of creating a file and using find's -newer...
1,482
Posted By jawsnnn
Expansion within cp
I have a bunch of files which I need to transfer to another location... and some of these I need to skip.

For e.g. let us say the files are:


cust_abc.dat
cust_xyz.dat
cust_def.dat


and...
1,389
Posted By jawsnnn
General question about folder level permissions
How is the level of access on a particular folder determined? I have heard (its just hearsay so am not particularly sure of it) that the access a particular user/group has to a low level directory is...
3,456
Posted By jawsnnn
This definitely helps. I like it very much when...
This definitely helps. I like it very much when someone takes the time to explain the solution, so that it can be applied elsewhere with ease. Thanks a lot!
3,456
Posted By jawsnnn
sed - combination of line deletion and pattern matching
I want to delete all the blank lines from a file before a certain line number. e.g.

Input file (n: denotes line number)

1: a
2:
3: b
4: c
5:
6: d
I want to delete all blank lines before...
17,256
Posted By jawsnnn
Hi, I have seen this syntax a few times....
Hi,

I have seen this syntax a few times. Could you please explain, what's the "1" at the end of awk statement doing in this code snippet. Thanks.
7,176
Posted By jawsnnn
I was under the impression that the string...
I was under the impression that the string (gender) was part of your sample file.

Change the code to :

sed 's/^Male\|^Female/&*/g' file1 | awk -F'\n' '$2 ~ /^Smith/ {print}' RS='*'


For...
951
Posted By jawsnnn
Write the search and replace terms to a file say...
Write the search and replace terms to a file say a.txt so that:


cat > a.txt
40101 5555777
40103 4777788
40014 2287457
40111 8877787
40000 7777112


Then,

while read search replace...
7,176
Posted By jawsnnn
I think the first variation should work fine for...
I think the first variation should work fine for multiple surnames. Let me explain the solution:


sed 's/(gender)/&*/g' file1 | awk -F'\n' '$2 ~ /^Smith.*/ {print}' RS='*'


1. I appended an...
2,906
Posted By jawsnnn
You do it manually, when you originally code it -...
You do it manually, when you originally code it - so it is easier to find where one loop ends and the other begins. It is also much less of a headache for others trying to understand your code.
...
3,399
Posted By jawsnnn
I don't think I made myself clear. Let me give an...
I don't think I made myself clear. Let me give an example. Suppose the file I have is:


testABCD
jklmn|testDEFGH
klmnoptestABCD


I want the sed command to replace only the first two...
1,473
Posted By jawsnnn
Or this: #!/bin/ksh cd...
Or this:


#!/bin/ksh

cd ${working_dir}
ls x[1-9] | while read file
do
echo "hello" >> ${file}
done
3,399
Posted By jawsnnn
How to specify beginning-of-line/end-of-line characters inside a regex range
How can I specify special meaning characters like ^ or $ inside a regex range. e.g

Suppose I want to search for a string that either starts with '|' character or begins with start-of-line...
4,357
Posted By jawsnnn
Wouldn't it be a better solution to simply delete...
Wouldn't it be a better solution to simply delete the lines, then renumber all of them from 1 to End of file?
5,395
Posted By jawsnnn
If using shell script is an option ...
If using shell script is an option


#!/bin/ksh
cnt=$(awk -F'|' '{print NF;exit}' 1)
for i in {1..$(expr ${cnt} - 1)}
do
field=$(cut -d'|' -f${i} 1 | sort -u | tr '\n' ',' | sed 's/,$//g')...
Showing results 1 to 25 of 65

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