10 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
Can anyone help me with this problem?:
Write a programm that converts a text file cu externs decimal reprezentations into a binary file with they're interns reprezentations.The file's specifiers are given as arguments in the command line.(sorry about my bad english):D (2 Replies)
Discussion started by: nemo113
2 Replies
3. Shell Programming and Scripting
To match all filename comprising at least three characters the first character is numeric and the last character is not alphabetic (2 Replies)
Discussion started by: polineni
2 Replies
4. Shell Programming and Scripting
To match all filename comprising at least three characters not beginning with a dot (1 Reply)
Discussion started by: polineni
1 Replies
5. Shell Programming and Scripting
Hi Guys,
In one of my folders i have 10000 log files starting with sqlfile.....
Iam trying to delete the log files alone from the folder using for loop but i am getting an error
ksh: /usr/bin/ls: 0403-027 The parameter list is too long.
For loop i used
for i in `ls sqlfile*`... (4 Replies)
Discussion started by: mac4rfree
4 Replies
6. 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
7. AIX
1) when user login to the server the session got colosed. How will resolve?
2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem?
Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies
8. UNIX for Advanced & Expert Users
Hi
I have 2 files which look like
File1
1245
1256
2345
2165
3245
9851
8514
6498
8547
2541
5242
and File2 (4 Replies)
Discussion started by: rochitsharma
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a file containing a list of entries.
Want to do ls on them.
for a in `cat <list.txt>`; do ls $a; done;
Now some entries contain spaces.
How do i incorporate space in $a.
Quoting $a in "" doesn't help.
Thanks (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
10. UNIX for Dummies Questions & Answers
Hello
when I try to run rm on multiple files I have problem to delete files with space.
I have this command :
find . -name "*.cmd" | xargs \rm -f
it doing the work fine but when it comes across files with spaces like : "my foo file.cmd"
it refuse to delete it
why? (1 Reply)
Discussion started by: umen
1 Replies