Search Results

Search: Posts Made By: SysAdm2
10,414
Posted By SysAdm2
Got it!
Here is how I fixed it..

Single q instead of qq...

This calls the entire line of the file into the variable first...
system (qq(cd /location && awk '/full/ {print $1;exit}'...
10,414
Posted By SysAdm2
more info...
The entire string that I am executing is this:

system (qq(cd /location && awk '/full/ { print $1;exit }' /myfile |xargs tar -cvf /tarball.tgz --bzip2));

Unfortunately, learning perl is not an...
10,414
Posted By SysAdm2
Executing AWK in a perl script using 'system'...
I have a simple perl script that looks similar to this:
#!/usr/bin/perl/

# Have a lot of PERL code in the front of this script.

#Would now like to execute a system command using AWK

system...
3,124
Posted By SysAdm2
Thanks for replying, but did not work - regular...
Thanks for replying, but did not work - regular expression compile failed (bad class -- [],[^] or [)

Looks like the [ in front of the work backup... but...

Here is the exact data in the file...
3,124
Posted By SysAdm2
Advanced grep'in... grep for data next to static element.
I have a directory I need to grep which consists of numbered sub directories. The sub directory names change daily. A file resides in this main directory that shows which sub directories are FULL...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 10:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy