10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello All,
I would need to write a shell script to find the files generation count for the given day and the folder.Presently I am using (ls -ltr *filename* | grep "Feb 19" | wc -l ) from each folder and getting the counts.I would like to create a script which will get the counts under the... (3 Replies)
Discussion started by: ravish383
3 Replies
2. Shell Programming and Scripting
Hi All,
Seeking for your assistance on how to put in variables all the commands in /bin
config files: /home/test/config_file/config.cfg
cat /home/test/config_file/config.cfg
ECHO=/bin/echo
LS=/bin/lsMain script
cat test.sh
source=/home/test/config_file/config.cfg
ECHO=$ECHO
LS=$LS#i... (3 Replies)
Discussion started by: znesotomayor
3 Replies
3. Shell Programming and Scripting
So, I need to find a bunch of files and delete them (this example, but sometimes I need it for something else) and my trusty go-to command has always been:
find . -type f -name '*file*' | xargs -I## rm '##'
Works wonders... But:
touch file\ file\'.txt
touch file.txt
touch file\ file.txt... (6 Replies)
Discussion started by: Mr.Glaurung
6 Replies
4. Shell Programming and Scripting
Hi bodies.
You think is it possible to make arrays from 2 different files in a same time and then for example compare the values in these 2 arrays or any other instruction
for example, I have:
38558 29 31
38557 28 31
38556 23 31
38555 08 31
38554 08 28
38553 21... (8 Replies)
Discussion started by: Behrouzx77
8 Replies
5. UNIX for Dummies Questions & Answers
Hi.
I'm new here, and I'm trying to enter this big world of unix.
I would like to know how can I install a SSH server for free so I can teste some things, like make a file, change files, rename and things like this?
If is there any easy way to test all commands it would be interesting too.
... (10 Replies)
Discussion started by: whity
10 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies
7. Shell Programming and Scripting
I want to create an awk script that performs different things on different files.
For example, for files with extension .ry I might do something, but for .xt I do something else, and another things on .zc files.
How can I do this in one awk script? (3 Replies)
Discussion started by: kristinu
3 Replies
8. Emergency UNIX and Linux Support
I were checking few processes running and check what at the files currently I have in my home directory by giving below commands
$ ps -ef|grep sleep
$ ls -lt | pg
after awhile the first column of my commands were created as files given below...
-rw-rw-rw- 1 prd 0 Mar 25 09:42 ls... (7 Replies)
Discussion started by: dateez
7 Replies
9. UNIX for Dummies Questions & Answers
We have two processes, one which copies a control file into a folder and another which is polling this folder and reading the control files.
Sometimes they clash and the reader fails because the copy is still happening.
We have been told that we should change the copy to a move because the... (1 Reply)
Discussion started by: sbarnes
1 Replies
10. Shell Programming and Scripting
hi all scripting gurus,
need some guide and advise from you.
i'm trying to list all the files in the year 2004 and the file format is something like this: 11176MZ00004JV900004JVB00004JVCcDBU20041206.txt try to use the symbol ^ but somehow it does not help.
i try this as well: ls -ltr |... (12 Replies)
Discussion started by: lweegp
12 Replies