10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a word and from that word would like to search for certain set of string, is there any command to do so ?
EX :
Components
from the above word, would like to search for strings set and extract the search string and then do if stmt...
pon
nen
ent
Com
say... (2 Replies)
Discussion started by: Optimus81
2 Replies
2. Shell Programming and Scripting
Hi Folks,
I want to use particular number as a variable output..Please find the below for scenario...
Example 1:-
Below output i want to use secondary group 9003 as a variable output
$ id -a |awk -NF '{print $3}'
groups=99(local),9003(testadmin)
Else
I want to use 2006 as a... (8 Replies)
Discussion started by: susindram
8 Replies
3. Shell Programming and Scripting
When I try to extract tty from ps command , at time we get output , at times we dont.
for eg i executed below quesry continulusly for some time,Actually i feel its because sometime pid allocated has some additional space at begining which causes this issue.
->ps | grep "/-ksh" | tail -1 | cut -f4... (2 Replies)
Discussion started by: lalitpct
2 Replies
4. Shell Programming and Scripting
how to use expr command to retrieve all the words before the equal sign "=" with shell script (3 Replies)
Discussion started by: 76455
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I'm new to unix so hopefully you can help!
I'm using the below command to extract a tables contents and store it in a dmp file:
exp OWNER/OWNER@LINK FILE=exp.dat TABLES=TABLE_TEST
This works fine and dumps the table into the exp.dat file.
What i can't figure out, is how to... (3 Replies)
Discussion started by: boijie
3 Replies
6. Shell Programming and Scripting
I need to extract information (for example, file owner, directory path, etc). However, the code below does not work? What is wrong?
find /usr/local/www/apache22/data/dev/chown_test -ls
for i in *
do
cut -f 1,2 "$i" | echo
done (3 Replies)
Discussion started by: montana24
3 Replies
7. UNIX for Dummies Questions & Answers
I have been slowly working towards getting a shell window in Cygwin (and/or Gnome and/or KDE) to start up and display the last time it was opened (or sourced) similarly to how the OS X Terminal does so. As close as I've been able to get so far is the 'who' command, but I can't seem to puzzle out... (2 Replies)
Discussion started by: SilversleevesX
2 Replies
8. Shell Programming and Scripting
I need help in extracting first file only from an ls command
and store it in a local variable
I thought using awk we could build something - not very
familiar how to do it
Something like
ls -t $search_string and store the resultant
first file alone into a local variable ( as my result... (4 Replies)
Discussion started by: prekida
4 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I need to extract IP info from few large files into a single file with IP info only. I guess I can use grep, uniq and redirection but I not sure how. Is there a way to do this with a single command? Your help is greatly appreciated. (7 Replies)
Discussion started by: di0de
7 Replies
10. Programming
hey
i want to extract an argument from double qoutes, eg: when the user enters:
prompt "mile"
i need to extract everything within the double quotes, in my case, mile, and save it to a string. feedback/code would be appreciated
thanks
mile1982 (1 Reply)
Discussion started by: mile1982
1 Replies