10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am very new to BASH and I am having difficulties moving a long list of image files into similarly named directories. I've been trying to come with a script all night and no luck. Here is what my list of files looks like:
DSC_0059_01.jpg
DSC_0059_02.jpg
DSC_0059_03.jpg
DSC_0059_04.jpg... (5 Replies)
Discussion started by: jowens1138
5 Replies
2. Solaris
Hi,
I wanted a script to find sum of files for a particular date, below is my script
ls -lrt *.req | nawk '$6 == "Aug"' | nawk '$7 == "1"'| awk '{sum = sum + $5} END {print sum}'
However, i get the error below
/usr/bin/ls: arg list too long
How do i fix that.
Many thanks before. (2 Replies)
Discussion started by: beginningDBA
2 Replies
3. Shell Programming and Scripting
Hi,
I have a requirement where I need to TAR more than 50K files.
Even though I can do TAR successfully on few 100s of files, but whenever Im trying to TAR the entire 50K files, I am getting the error message :
Argument List Too Long.
Please suggest how can i avoid this error.
Im... (2 Replies)
Discussion started by: unx100
2 Replies
4. Shell Programming and Scripting
Input:
>abc|123456|def|EXIT|
>abc|203456|def|EXIT2|
>abc|234056|def|EXIT3|
>abc|340056|def|EXIT4|
>abc|456000|def|EXIT5|
.
.
.
Output:
def|EXIT|
def|EXIT2|
def|EXIT3|
def|EXIT4|
def|EXIT5|
.
.
My try code: (9 Replies)
Discussion started by: patrick87
9 Replies
5. Shell Programming and Scripting
Hi,
I need to replace the string 'abcd' with 'xyz' in a file sample.xml
This sample.xml is also present in the subdirectories of the current directory.
Eg,
If I am in /user/home/
the sample.xml if present in
/user/home/
/user/home/folder1/
/user/home/folder2/... (3 Replies)
Discussion started by: arulanandsp
3 Replies
6. Shell Programming and Scripting
Hi,
I have used a command rm *.txt in a directory which has about 2000 txt files.
but it is throwing the following error:
error: args list too long.
any ideas pls.. (16 Replies)
Discussion started by: techmoris
16 Replies
7. Shell Programming and Scripting
Hi,
I Have 10 files ,I need replace $INPUT_LOCATION with $INPUT_LOCATION_upd .using sed command do it single file .How can change all files in single shot instead of doing individual file
sed -s'/old/new/g' file1
Thanks,
Mohan (2 Replies)
Discussion started by: mohan705
2 Replies
8. Shell Programming and Scripting
Hello guys,
I need help in globally replacing a string 'string1' with 'string2' in several files in a directory. In fact, also in all directories under it.
Can anyone help me...
Thanks (3 Replies)
Discussion started by: chiru_h
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am trying to perform this task:
tar -cvf tar.newfile ??????.bas
I got error "arg list too long". Is ther any way around? I have about 1500 file need to be tar together.
Thanks in advance (5 Replies)
Discussion started by: jds3
5 Replies
10. UNIX for Dummies Questions & Answers
hello all
i need some help because i am a unix/linux dummy...i have the following:
DIR1> has 121437 files in it with varying dates going back to early April,
a sub dir DIR1/DIR2> has 55835 files in it
I need to move all files (T*.*) out of DIR1 into DIR2 that are older than today?
Ive been... (2 Replies)
Discussion started by: jamos007
2 Replies