10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all.
Im trying very hard to figure this out, but Im a newbie.
I have a file that looks like this....
6315551234 NJ224
5162224567 SUFF
Im trying to put a command together that will make it into this....
UM,6315551234,,,,,NJ224,0
UM,5162224567,,,,,SUFF,0
Im all over the... (7 Replies)
Discussion started by: jay11789
7 Replies
2. Shell Programming and Scripting
Hey everyone,
I have a bunch of lines with values in field 4 that I am interested in.
If these values are between 1 and 3 I want it to count all these values to all be counted together and then have the computer print out
LOW and the number of lines with those values in between 1 and 3,... (2 Replies)
Discussion started by: VagabondGold
2 Replies
3. Shell Programming and Scripting
Hi,
I'd like find multiple file options to fetch different types of files.
find /path...// -type f -name "*.log" -o -name "*.req" -o -name "*.txt" -mtime +5 -exec ls -l {} \;
Where as in the above command only the last .txt files its retriving but not .log and .req files can body help... (1 Reply)
Discussion started by: Y.balakrishna
1 Replies
4. Shell Programming and Scripting
Hi All,
I am new to scripting. Could you please assist me .
Here is my requirement. I have written a script that has 2 option flags defined.
-l) calls some function with the arguments passed in front of -l
-r) calls second function with the arguments passed in front of -r
*) calls the... (7 Replies)
Discussion started by: Jay Deshpande
7 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
What am trying do is search for a directory that is owned by cm that only exists in a path that has a particular directory
ex: what I'm using now is
find . -user cm -name '*.rel' -type d -exec ls -dl {} \;
This is giving me stuff like this
./../../foo1/../../*.rel... (2 Replies)
Discussion started by: jtmed
2 Replies
6. Shell Programming and Scripting
Help request,
I have tsted this line of code for hours. The first line works and the second line returns the message " sed: command garbled.....". This
is running on solaris. The "${} variables all have good values when echoed.
## /bin/sed -n '1,25p' ${file} >> ${MailFile}
... (3 Replies)
Discussion started by: millerg225
3 Replies
7. UNIX for Dummies Questions & Answers
So I have a bunch of strings in a file.
Example Line
./prcol/trt/conf/conf-app/jobdefinition/trt-pre-extr-trt-step.jdef
Intended Result
pre-extr-trt-step
So far I have parsed it out to the last bit,
echo $line | cut -d'/' -f7 | cut -d. -f1Result
trt-pre-extr-trt-step
So I added a... (2 Replies)
Discussion started by: J-Man
2 Replies
8. Shell Programming and Scripting
This is my command
echo "Test" | sed -f <(sed -e 's/.*/s,&,gI/' mydic)
In mydic file,containing 2 columns delimit by comma (,)
a,AlphabetA
.
.
.
e,AlphabetE
.
.
s,AlphabetS
.
t,AlphabetT
test,testedd
.
.
zebra,zebraaaa
The expect result is testedd (0 Replies)
Discussion started by: Runicer
0 Replies
9. Shell Programming and Scripting
Hi, Unix Gurus,
- I have a simple question, I need create multiple directory. I use
mkdir {dir1, dir2, dir3)
I got one directory as
{dir1, dir2, dir3}
I searched @ google, I got answer as above code.:wall::confused:
Anybody has any idea
Thanks in advance
---------- Post updated... (3 Replies)
Discussion started by: ken002
3 Replies
10. Shell Programming and Scripting
Hello All,
Is there a way to make exec do a couple of operations on a single input from find?
For example,
find . -type d -exec ls -l "{}" ";"
I would like to give the result of each "ls -l" in the above to a wc. Is that possible?
I want to ls -l | wc -l inside exec. How do I... (1 Reply)
Discussion started by: prasanna1157
1 Replies