10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Good day all.
I'm trying to rename some files in my home directory with some bizarre results. Basically I need to change the IP address in the filename to the hostname which I ggrep from within the file:
-rw-r--r-- 1 bh694n nrc 5095 May 2 20:03 alarms_999.189.161.146.log... (2 Replies)
Discussion started by: BRH
2 Replies
2. Shell Programming and Scripting
I also posted this on macrumors forum, then i realized that this is a more suitable forum for matters like this. I apologize for the username, I was looking at a bag of doritos when it asked me for a username. lol
I need a program (see below for what I've tried) and I think a shell program will... (23 Replies)
Discussion started by: ilovedoritos
23 Replies
3. UNIX for Dummies Questions & Answers
OK So I Recently Bought A whatbox Seed-box Act!!:cool:
I am connected to whatbox via SSH!!!
Now i have downloaded a movie and renamed it to 2yify.mp4 (800MB):o
When I TYPE the command to split it which is:)
split -b 400m 2yify.mp4
It gets renamed into two parts with different names... (4 Replies)
Discussion started by: anime12345
4 Replies
4. UNIX for Advanced & Expert Users
I have about 1000 files containing the character * in the name. I need to find these files and replace the * with a -. I am working with HP UX v11. I am using the following command
find . -type f -name '*\**' -exec bash -c 'f="$1"; mv "$f" "${f//\*/-}"' - '{}' \
People tell me it works for... (4 Replies)
Discussion started by: MikeDavid
4 Replies
5. Shell Programming and Scripting
Hi, I have the following problem:
I have a list of files:
1.txt
2.txt
3.txt
4.txt
Then I have a list of variable names inside variable.txt:
A
B
C
D
I'd like to rename 1.txt, 2.txt etc using the variables from variable.txt (2 Replies)
Discussion started by: hubleo
2 Replies
6. Shell Programming and Scripting
:wall:
Hello there,
basically in my program where im stuck at is when it comes to rename the files in a loop.
- the program counts the number of files w a given name (works!)
- and then if the number of files is greater or equal to the MAX_VERSIONS (numbers of files allowed w the... (1 Reply)
Discussion started by: thurft
1 Replies
7. Shell Programming and Scripting
Hello mates,
I am quite new to script programming and I am facing an uphill task to rename files in one folder. I have gone through similar posts but most of them deal with renaming files by changing the file extensions.
Problem : I have a folder which contains files like... (5 Replies)
Discussion started by: chirag.joshi
5 Replies
8. UNIX for Advanced & Expert Users
Hi,
I need to rename all the .txt files present in current directory to .dat files respectively in UNIX.
for example:
$ ls
aaa.txt bbb.txt ccc.txt
I need to change them to
$ ls
aaa.dat bbb.dat ccc.dat
Is there any UNIX command to do this in one go?
... (3 Replies)
Discussion started by: Johny001
3 Replies
9. Shell Programming and Scripting
Hi,
I am trying to create a script which validates the incoming source files. The script has File name Pattern as Argument. The First part of the script validates if there are any files available
if
then
echo "\n Files are available to process \n"
else
echo "\n File does not... (9 Replies)
Discussion started by: dsshishya
9 Replies
10. UNIX for Advanced & Expert Users
I know this is probably a question for the newbie forum, where it is also posted, but I thought maybe some of you pros might like to help me out anyway. Here is my problem:
I have to rename a batch of files that look like:
2001_0001.asc
2001_0002.asc
.
2001_0548.asc
2002_0184.asc
.
.... (0 Replies)
Discussion started by: sea krait
0 Replies