08-11-2006
$ ls | grep "myfile_[0-9]\{8\}_[0-9]\{6\}\.txt"
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am in need of a easy to read and easy to understand, Unix scripting book.
Can anyone make any recommendations ?
thanks in advance
simon2000 (2 Replies)
Discussion started by: simon2000
2 Replies
2. Shell Programming and Scripting
I have this in my script:
DEBUG_DIR=/log/rotate_output
DEBUGLOG=${DEBUG_DIR}/rotate.${TIMESTAMP}
SERVER_FILE_LIST="\
wasint0206 /logs/squid_backup
wasint0201 /logs/squid_backup"
/usr/bin/echo "${SERVER_FILE_LIST}" | while read SERVER DIRECTORY
do
cd /log/squid_logs/${SERVER}... (2 Replies)
Discussion started by: LordJezo
2 Replies
3. OS X (Apple)
I've seen the executable open in the application OmniOutliner, can I create an executable with this app? I'd like to be able to create the unix executable and insert it into terminal, but I'm not sure if the Omni app will allow me to create it.
Any one have any ideas or possibly familiar with... (10 Replies)
Discussion started by: unimachead
10 Replies
4. UNIX for Dummies Questions & Answers
I need to gain one of these fast!...
Any ideas on best way to go about it?...I have money to spend but not sure how to do it.
Solaris certification (SUN Admin Part 1 and/or Part 2) as well as proficiency in AIX
OR AIX certification (ASA and/or ASP) as well as proficiency in Solaris, (1 Reply)
Discussion started by: IBMPBC
1 Replies
5. Shell Programming and Scripting
What is the easiest way to convert the time (Gregorian YYYY-MM-DD HH:MM:SS.subseconds) to MJD (Modified Julian time) inside a text file:
2010-06-28 15:11:08.0902173 otherstuff
2010-06-28 15:12:09.3452183 otherstuff
...
to
55375 54668.0902173 otherstuff
55375 54729.3452183 otherstuff... (2 Replies)
Discussion started by: menon
2 Replies
6. Shell Programming and Scripting
i have a one column txt file, which has a large amount of data which look like this
a
11
3
b
45
77
r
7
9
blah
blah
blah
what i am trying to do here is for every 3 lines, i want to move the 2nd and 3rd line to the first line, so it will look like this
a 11 3
b 45 77
r 7 9 (8 Replies)
Discussion started by: fedora
8 Replies
7. Ubuntu
I am planning to dual boot Windows XP and Ubuntu 9.04, I have already burned Ubuntu into a CD and have also downloaded the ISO. But when I go to My Computer to start the installation, a different icon appears. And when I open it with ISO Buster, it opens up separately. I'm confused on what to... (5 Replies)
Discussion started by: Anna Hussie
5 Replies
8. Solaris
After a memory upgrade all network interfaces are misconfigued. How do i resolve this issue. Below are some out puts.thanks.
ifconfig: plumb: SIOCLIFADDIF: eg000g0:2: no such interface
# ifconfig eg1000g0:2 plumb
ifconfig: plumb: SIOCLIFADDIF: eg1000g0:2: no such interface
# ifconfig... (2 Replies)
Discussion started by: andersonedouard
2 Replies
9. UNIX for Dummies Questions & Answers
cd path
line1
line2
line3
line4
line5
Lets say thats the sample script...So say if i have to comment the above script, which would be the better way so that whenever i want, i cud comment or uncomment the same.
Thanks (1 Reply)
Discussion started by: saggiboy10
1 Replies
ZGREP(1) General Commands Manual ZGREP(1)
NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO
grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)
ZGREP(1)