Search Results

Search: Posts Made By: spirospap
2,616
Posted By spirospap
Noted and agreed. It may not be apparent but I am...
Noted and agreed. It may not be apparent but I am working very hard on this. And your experience and guidance is not taken for granted or unappreciated. I will keep all suggestions in mind.

Thanks
2,616
Posted By spirospap
You are very right. Perfectly understood I will...
You are very right. Perfectly understood I will do that in the future. Not that it makes any difference but I didn't even know that something like that was possible. Unix for DUMMIES, remember? I...
2,616
Posted By spirospap
Honestly, I didn't but I found a perl one-liner...
Honestly, I didn't but I found a perl one-liner to recursively delete the unnecessary lines before running the script you suggested perl -i -pe "chomp if eof” */*

Now I am trying to substitute -...
2,616
Posted By spirospap
...and there is..
...and there is..
2,616
Posted By spirospap
Awesome! Thanks again ---------- Post...
Awesome!

Thanks again

---------- Post updated 06-19-16 at 09:50 AM ---------- Previous update was 06-18-16 at 11:37 PM ----------

An extra out-of-sequence record appears at the end of every...
2,616
Posted By spirospap
A yearly output file in addition to the monthlies...
A yearly output file in addition to the monthlies would be fantastic. I believe it is Option #3.

Thank you
2,616
Posted By spirospap
Oh, this is perfection beyond belief! Thank you! ...
Oh, this is perfection beyond belief! Thank you!

Is it possible to concatenate all the .txt files of a single year into a single file?
For example, all below files into one CPK2004.txt file?
...
2,616
Posted By spirospap
Hello, Re kernel please see below: ...
Hello,

Re kernel please see below:
Spiross-MBP:AIRTEMP spirospap$ uname -a
Darwin Spiross-MBP.fios-router.home 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016;...
2,616
Posted By spirospap
I simplified the request. Thanks for the comment...
I simplified the request. Thanks for the comment and the printing suggestion although it doesn't produce the desired result.
2,616
Posted By spirospap
Combine files & express Date in Julian days
Hi Folks,

I have below files in one directory:

Spiross-MBP:AIRTEMP spirospap$ ls -1
CPK2004001
CPK2004002
CPK2004003
etc...
JFK2003001
JFK2003002
JFK2003003
etc...
TEB1999001...
2,528
Posted By spirospap
You are correct. This works perfectly Thank...
You are correct. This works perfectly

Thank you very much.
2,528
Posted By spirospap
This will delete the .txt, .tar and .tif files as...
This will delete the .txt, .tar and .tif files as well and these have to survive.
2,528
Posted By spirospap
I listed an example with all the files with their...
I listed an example with all the files with their extensions in the original message.
The files to be removed end with r without dot and others end in t without dot.

Thank you
2,528
Posted By spirospap
The complication is that .txt and .tar files need...
The complication is that .txt and .tar files need to stay.
This command selects also the .tif, .txt and .tar files that are necessary.

Thanks
2,528
Posted By spirospap
Recursive remove files
Hi folks,

I have several directories with multiple files of all kinds in them. For example
directory ###### contains:

######B1.TIF
######B2.TIF
...........
######B8.TIF
######.tar...
3,564
Posted By spirospap
Oh -that's neat! spirospap$ cat tester1 ...
Oh -that's neat!


spirospap$ cat tester1
#!/bin/ksh
ls LC* | cut -c 1-21 | sort -u | xargs mkdir -p
for dir in */
do for file in "${dir%/}"?*
do [ -f "$file" ] && mv -v "$file"...
3,564
Posted By spirospap
Yes, this works perfectly also but originally the...
Yes, this works perfectly also but originally the empty directories are not there. I create them using code below

#create filename list text
$ls -1 directory/filter* > names.txt
#get first 21...
3,564
Posted By spirospap
Works perfectly Thanks!
Works perfectly

Thanks!
3,564
Posted By spirospap
Move multipe files to corresponding directories
Hi,

In a parent directory there are several files in the form
IDENTIFIER1x
IDENTIFIER1.yyy
IDENTIFIER1_Z, etc
IDENTIFIER2x
IDENTIFIER2.yyy
IDENTIFIER2_Z, etc
IDENTIFIER3x
IDENTIFIER3.yyy,...
Showing results 1 to 19 of 19

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