Search Results

Search: Posts Made By: LeftoverStew
1,754
Posted By LeftoverStew
Ok I realized I forgot to type an extra ' after F...
Ok I realized I forgot to type an extra ' after F (dumb), but now it returns just usr1 printed once?
1,754
Posted By LeftoverStew
I tried and it didn't seem to work... It just...
I tried and it didn't seem to work... It just says Unmatched ' ?
1,754
Posted By LeftoverStew
The 000* series.
The 000* series.
1,754
Posted By LeftoverStew
Extract lines that appear twice
I have a text file that looks like this :


root/user/usr1/0001/abab1*
root/user/usr1/0001/abab2*
root/user/usr1/0002/acac1*
root/user/usr1/0002/acac2*
root/user/usr1/0003/adad1*...
8,315
Posted By LeftoverStew
The first and second file have the same name,...
The first and second file have the same name, with the exception that the first file has 004 in the name and the second has 005. So yes, numerically.
8,315
Posted By LeftoverStew
Copy contents of one file to another
I need to write a script (in bash) that copies the content of the first file in each folder of a directory to the second file in the same folder. I tried this and it didn't work - it just came back...
1,695
Posted By LeftoverStew
Scrutinizer, you are an awesome human being. I am...
Scrutinizer, you are an awesome human being. I am forever grateful, it does exactly what I wanted!!!
1,695
Posted By LeftoverStew
for file in `cat 1.txt`; do ln -si $file...
for file in `cat 1.txt`; do
ln -si $file ./root/00*/folder2/*5*_done.nii.gz
done
1,695
Posted By LeftoverStew
Script for linking files with paths in 2 text files
I have 2 txt files, 1.txt and 2.txt which contain the paths to files that need to be linked.

Example 1.txt:
/root/001/folder2/image4.nii.gz
/root/002/folder2/image4.nii.gz

Example 2.txt:...
1,179
Posted By LeftoverStew
I know not to use a subject if files with a...
I know not to use a subject if files with a specific part in their names are missing. So yes, there is a list of necessary files.

And by "lines" I meant each row of ls output - directory of each...
1,179
Posted By LeftoverStew
How to extract specific data?
Bash scripting beginner here...

I have many folders, each folder representing one subject. Not all subjects have all the required files, so I need to somehow cycle through all the data and then...
Showing results 1 to 11 of 11

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