Search Results

Search: Posts Made By: ndnkyd
1,313
Posted By ndnkyd
Thanks Yoda, that worked!
Thanks Yoda, that worked!
1,313
Posted By ndnkyd
Create 2 Columns from filename
Hi, I have a directory of files with filenames all in the format of xxx_yyy_zzz.pdf
Where xxx and yyy changes each filename but zzz stays the same. For example: File 1: Gold_Car_Vehicle.pdf; File n:...
2,630
Posted By ndnkyd
Delete row if column matches
Hi, I have a long file in the format below. I want to delete the consecutive lines that contain the same value in column 1.
I have tried awk '!x[$1]++' FS="," filename
This has not worked.
...
1,323
Posted By ndnkyd
Files and directories
I have a .txt file with 100 entries. I want to create a directory named after each entry.

Example of file
AC101
AC102
BP201
BP300
PM7
.
.
PM200

I was thinking about: head -100 *.txt |...
2,308
Posted By ndnkyd
Not looping
Thanks for the suggestion. It works for the first file, but does not continue to loop through the other files. The code now is:

#!/bin/sh

set -e
for f in *.pdf
do
d=${f%_*.*}
done
for drt...
2,997
Posted By ndnkyd
Use filenames to create directory.
I have many files similar to this one: AC41_AC85_86_AC128_129_MC171_173_SF_207_FMV.pdf.

I want a directory named AC41 and to put the file AC41_AC85_86_AC128_129_MC171_173_SF_207_FMV.pdf into the...
2,308
Posted By ndnkyd
Creating Directories
I have many pdf files with similar naming conventions as this one: AC41_AC85_86_AC128_129_MC171_173_SF_207_FMV.pdf. It is a pdf file containing evaluations for these locations: AC41, AC85, AC86,...
2,247
Posted By ndnkyd
awk calculation problem
I have a list of coordinate data, sampled below.

54555209 784672723

I want it as:

545552.09 7846727.23

Below is my script:

BEGIN {FS= " "; OFS= ","} {print $1*.01,$2*.01}

This is my...
2,959
Posted By ndnkyd
Parsing text from file
Any ideas?

1)loop through text file
2)extract everything between SOL and EOL
3)output files, for example: 123.txt and 124.txt for the file below

So far I have: sed -n "/SOL/,/EOL/{p;/EOL/q;}"...
Showing results 1 to 9 of 9

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