9 More Discussions You Might Find Interesting
1. What is on Your Mind?
as I mentioned in this thread(https://www.unix.com/shell-programming-and-scripting/280737-awk-function-return-permutations-n-items-out-m.html), a helpful coding style may improve overall value and support for people who come here and want to learn things the participants from unix.com have... (2 Replies)
Discussion started by: stomp
2. Shell Programming and Scripting
I have a database of compound words. I want to retain only strings with a single hyphen and identify those strings which have more than one hyphen. I am giving an example below
The regex/script should remove all... (11 Replies)
Discussion started by: gimley
3. Shell Programming and Scripting
This is on a RHEL 6 box with bash 4.1.2
I'm trying to to use grep to only find those lines containing matches that form whole words.
The -w option works fantastic unless of course that word has a hyphen.
The problem is I will get a hit on "test-group" which is a good thing, but I will also... (3 Replies)
Discussion started by: woodson2
4. Shell Programming and Scripting
I have searched throught a host of threads to figure out how to rename mutiple files at once using a script.
I need to convert 200+ files from:
fKITLS_120605-0002-00001-000001.hdr to eStroop_001.hdr
fKITLS_120605-0002-00002-000002.hdr to eStroop_002.hdr
and so forth....
What is... (5 Replies)
Discussion started by: akenne3
5. What is on Your Mind?
I am trying to figure out a sort of Motivational line that I could
write as a short unix command... I don't know too much but something like Get everything you want in life
sudo (get everything) (you want?) (life directory)
Thank You very much
Brad (4 Replies)
Discussion started by: ridesurf
6. Shell Programming and Scripting
I need to write a small script to search in some specific directories to check if any file is present with a unix command name...
Means if the directory contains any files like cat, vi, grep, find etc i need to list those files into a file.
D (6 Replies)
Discussion started by: deepakgang
7. Shell Programming and Scripting
Hey guys i'm creating a dos style rename script, so if a user types say q14.* as the 1st param and b14.* as the 2nd and will rename all q14 files to b14 but keep the extensions, so i've developed nearly the full script "i think", if i use echo(echo "if $1 had been renamed it would now be... (3 Replies)
Discussion started by: fblade1987
8. Shell Programming and Scripting
I have files on my unix boxes that users have created with spaces.
Example: /tmp/project plan
ls -l "/tmp/project plan" works fine.
$/tmp>ls -l "/tmp/project plan"
-rw-r--r-- 1 root other 0 Jan 31 12:32 /tmp/project plan
I created a file called test and put just the... (2 Replies)
Discussion started by: x96riley3
9. UNIX for Dummies Questions & Answers
I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
Discussion started by: deckard