10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a directory that is restricted and I cannot just copy the files need, but I can cat them and redirect them to a new directory. The files all have the date listed in them. If I perform a long listing and grep for the date (150620) I can redirect that output to a text file. Now I need to... (5 Replies)
Discussion started by: trigger467
5 Replies
2. Shell Programming and Scripting
I have written three database queries to extract data from yesterday, last week and last month. I need a way to name the output files something like this :
"Daily 2014-05-21", "Weekly 2014-05-19" & "Monthly 2014-05-01" if I run them today ( 2014-05-22 ).
I can specify the output file name from... (5 Replies)
Discussion started by: djohnson123
5 Replies
3. Shell Programming and Scripting
Hi,
Here is my question: suppose I have files like
1990_8xdaily_atmos.nc
1991_8xdaily_atmos.nc
1992_8xdaily_atmos.nc
1993_8xdaily_atmos.nc
1990_daily_atmos.nc
1991_daily_atmos.nc
1992_daily_atmos.nc
1993_daily_atmos.nc
1990_month_atmos.nc
1991_month_atmos.nc
1992_month_atmos.nc... (1 Reply)
Discussion started by: 1988PF
1 Replies
4. Shell Programming and Scripting
Hi,
I have in the one folder file and directory that have same name. I need make diff from first directory where exists file in folder FOLDER/filename and second file where not exist folder, but FOLDER is filename. I use -N switch for create new file. Scripts report: Not a directory
Sample:... (2 Replies)
Discussion started by: tomix
2 Replies
5. Shell Programming and Scripting
how to put pwd in my file
my working directory is /usr/my_dir
below my file
aaaaaa
bbbbbb
so output file become
/usr/my_dir
aaaaaa
bbbbbb (2 Replies)
Discussion started by: zulabc
2 Replies
6. Shell Programming and Scripting
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
Discussion started by: natalie23
3 Replies
7. UNIX for Dummies Questions & Answers
Hello everyone,
I've got a C program that I'm trying to run through my unix shell but whenever i compile it using gcc (using "cc test.c"), it cannot find stdint.h. Right now, i have it in the same directory as the program I'm running, test.c. Any suggestions? (3 Replies)
Discussion started by: TeamUSA
3 Replies
8. Shell Programming and Scripting
Hi all,
I will have to check a directory which is full of files. If any file more than 5 MB of space exists, write on it's head "Checked". Please help me.
Thanks in advance!
Deepak (5 Replies)
Discussion started by: naw_deepak
5 Replies
9. Shell Programming and Scripting
hi
find /home -type f -atime +5
shows me files like :
home/test/aaa.txt
home/test/bbb.html
How can I get the file name
I mean only aaa.txt and bbb.html (19 Replies)
Discussion started by: tjay83
19 Replies
10. Shell Programming and Scripting
hi all
plz let me how to test output of "tail -1 filelist.lst" is file or directory.
regards
-Bali Reddy (1 Reply)
Discussion started by: balireddy_77
1 Replies