Search Results

Search: Posts Made By: manouche
1,934
Posted By manouche
Bash script to process file without regard for case
Hello,

I have a Bash script that processes a text file so that the existing file will look something like this:

/www/repository/2010/201002231329532/LTLO_0407.pdf...
3,895
Posted By manouche
Reply to my own message about logrotate and cron
I have discovered that cron.daily has not run since April 6. This explains why logrotate is not operating correctly. I have verified that crond is running, there are no scripts in cron.daily that...
3,895
Posted By manouche
logrotate isn't rotating files any longer
I have been using logrotate for quite awhile now. Most logs are rotated daily, using /etc/cron.daily. I noticed that the logs in question have not been rotated since April 6, but daily up to that...
5,564
Posted By manouche
Okay, here is a sample, cut and pasted: file...
Okay, here is a sample, cut and pasted:

file 1

99997 410
99998 410
100000 410
100001 410

file 2

99997 2009-05
99998 2009-04
99998 2009-04
99998 2009-04
99998 2009-04
99998...
5,564
Posted By manouche
Thanks for your reply. That was a typo on my...
Thanks for your reply. That was a typo on my part. It actually is 100000 and not 10000. It behaves the same as I reported, breaking at 99998.
5,564
Posted By manouche
join command and delimiters
I am using the join command to join information from two files that have a common field. Here are some examples:

field1:

99900 543
99903 333
99998 120
10000 222
100001 333
100005 220...
5,275
Posted By manouche
Sed inside bash script - accessing multiple files
I have a file (email) containing email addresses.

I have a second file (terms) that contains simple regular expressions and words/characters. Here are some examples:

\.trainee
\.group
\.web...
2,272
Posted By manouche
Question about an expect script
I am using Expect to spawn a command that loops through a text file and runs the same command for each item in the text file.

The text file, named stat.txt looks something like this:

2007-04...
3,251
Posted By manouche
logrotate question
I am getting this system message:

/etc/cron.daily/logrotate:

error: rsync:7 unknown option 'endscript' -- ignoring line

I don't find anything related to rsync in the logrotate.conf file, so...
3,878
Posted By manouche
sed substitution and multiple lines
I have a file names 'log.txt' that looks something like this:

#This is a comment
/sbin/iptables -A INPUT -p tcp -s ip.of.a machine --destination-port 21 -j ACCEPT

#This is the comment to read#...
2,544
Posted By manouche
sed used for updating firewall allow ftp from DHCP access
Here is my situation. You can make all kinds of comments about how I am doing it and why from the networking standpoint, but I am really only looking for comments on how to make it work. Of course,...
2,544
Posted By manouche
sed used for updating firewall to accept
Here is my situation. You can make all kinds of comments about how I am doing it and why from the networking standpoint, but I am really only looking for comments on how to make it work. Of course,...
2,762
Posted By manouche
sed or other tool to manipulate data, including email addresses
I have a list of names and email addresses, like this. The <tab> markers are actually tabs.

joe.blow <tab> joe.blow@wherever.com
tom.t.hall <tab> tom.t.hall@wherever.com
john.r.smith <tab>...
4,642
Posted By manouche
processing a file with sed and awk
Hello,

I have what is probably a simple task in text manipulation, but I just can't wrap my brain around it.

I have a text file that looks something like the following. Note that some have...
Showing results 1 to 14 of 14

 

Featured Tech Videos

All times are GMT -4. The time now is 03:26 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy