Search Results

Search: Posts Made By: 2reperry
4,770
Posted By 2reperry
Searching for file names in a directory while ignoring certain file names
Sun Solaris Unix Question

Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in...
3,133
Posted By 2reperry
CFS is just a variable I created to hold the...
CFS is just a variable I created to hold the current internal field separator (hence CFS - - current field separator) before I set it to $echo. And then it's used to set the IFS back to it's original...
3,133
Posted By 2reperry
It might help if u were to explain what you were...
It might help if u were to explain what you were trying to accomplish and I might be able to help further. However, in the examples you outlined try adding the following lines at the beginning of the...
Forum: SuSE 06-16-2009
12,984
Posted By 2reperry
need help with recode command for CR/LF
Not sure if this is a Linux issue or specific to SuSE Linux, but, in the infinite wisdom of the developers they decided to do away with the dos2unix and unix2dos commands which were very handy in...
8,575
Posted By 2reperry
I think I've got this one figured out thanks to...
I think I've got this one figured out thanks to your valuable input. Much thanks!

What I did, based on your input :

I read each record into $LINE and then do the following :

echo "$LINE" |...
8,575
Posted By 2reperry
Sorry, but, maybe I wasn't clear enough in my...
Sorry, but, maybe I wasn't clear enough in my original thread. tr won't work for me because I need to do processing on each string after it's been parsed and before reading of the next record. If I'm...
8,575
Posted By 2reperry
Parse apart strings of comma separated data with varying number of fields
I have a situation where I am reading a text file line-by-line. Those lines of data contain comma separated fields of data. However, each line can vary in the number of fields it can contain. What I...
24,940
Posted By 2reperry
I have also tried removing the -name '*' from the...
I have also tried removing the -name '*' from the command and it still gets no output back. I also removed the -name '*' and replaced it with -type f to no avail also.
24,940
Posted By 2reperry
That's wierd because it won't work on HP-UX 11i....
That's wierd because it won't work on HP-UX 11i. The -name '*' would be a passin value from user input. It could be '*' or '*TEST' or any other wildcarded search parameter. They can also input...
24,940
Posted By 2reperry
Try adding the -name '*' after the -prune portion...
Try adding the -name '*' after the -prune portion of the command and see if you get any different results.
24,940
Posted By 2reperry
Tried that already
i did see that solution but it does not work in my case. Here's what I had using that solution :

find /dir1 \( ! -name /dir1 -prune \) -name '*' -mtime +30 -print > filelist.lst

However, when I...
24,940
Posted By 2reperry
Find command uisng -prune or -only
I've run into a brick wall using the -prune command to avoid walking sub-directories. Does any one have any suggestions on how I avoid walking the sub-directories when finding files in the following...
34,707
Posted By 2reperry
awk with the -v worked. Thank you very much.
awk with the -v worked. Thank you very much.
34,707
Posted By 2reperry
Setting the FS in awk
I am writing a POSIX script where I need to set the FS equal to a variable that was set prior to executing the awk command. Is there a way to set FS equal to a variable that has already been set in...
5,193
Posted By 2reperry
BINGO! I did a hex dump of the file and found...
BINGO! I did a hex dump of the file and found that all of the records except the last one have a linefeed.

Any ideas on how to get a linefeed on this last record prior to running the sed command?
5,193
Posted By 2reperry
sed not outputting last line of input file
I am using sed for a simple substitution (see command syntax below). Everything works fine except that the last line of the input file does not get written to the output file. Has anyone ever seen...
Showing results 1 to 16 of 16

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