9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I want to create new user BG0001 in SunOS and getting below errorbash-3.2# useradd -d /home/BG0001 -m -s /bin/sh BG0001
UX: useradd: BG0001 name should have at least one lower case character.
OS version is as belowbash-3.2# cat /etc/release
... (7 Replies)
Discussion started by: sandeepkmehra
2. Shell Programming and Scripting
In the bash below I am trying to run the script entire script including the ....(which is a bunch of code) and then in the run function if the user response is y (line in bold). then start processing from execute function. Basically, goto the # extract folder for variable filename line and start... (4 Replies)
Discussion started by: cmccabe
3. Shell Programming and Scripting
ps -ae return
I would like that the following command return 3214
echo " 3214 ? 00:00:01 acroread" | grep -o "]]]*" (5 Replies)
Discussion started by: jcdole
4. UNIX for Dummies Questions & Answers
Here is my task, I feel sure this can be accomplished with see/awk but can't seem to figure out how.
I have large flat file from which I need to extract every case of a pairing of characters (GG) in this case PLUS the previous 20 characters. The output should be a list (which I plan to make... (17 Replies)
Discussion started by: Twinklefingers
5. UNIX for Dummies Questions & Answers
This time I am trying to extract the number 10 from the following line. This number is subject to change and may be anything from 1 to 3 numerals in length, i.e. 1-999. Hence why I dont want to use 'cut' cmd.
The line I am working on is
GGSN-MIB::ggsnApnName.10 = STRING: open.internetI have... (7 Replies)
Discussion started by: rob171171
6. Shell Programming and Scripting
How to extract the last character of a string in bash?
---------- Post updated at 03:56 PM ---------- Previous update was at 03:55 PM ----------
Suppose "abcde" is a string. i want to extract the last character i.e. "e". (1 Reply)
Discussion started by: proactiveaditya
7. Shell Programming and Scripting
I was wondering if it was possible to take in a user's response in a perl program.
Ask user a yes or no question, and then depending on the response, print out a corresponding answer?
Thanks! (2 Replies)
Discussion started by: silkiechicken
8. Shell Programming and Scripting
This is Ram. I'm new to this forum & new to shell scripts as well. I've a requirement in which I want to extract a substring from a given string based on last occurance of a character.
I have a string of a file name with absolute path like... (2 Replies)
Discussion started by: krramkumar
9. Shell Programming and Scripting
Would there be any reason for why a 'read ans' would not wait for a user's response (i.e user has to hit a key to continue)? I know for sure that it is doing everything else in that part of my 'if' statement but it doesn't wait for me to hit a key before continuing.
The strange thing is that... (4 Replies)
Discussion started by: giannicello