Search Results

Search: Posts Made By: gigagigosu
Forum: OS X (Apple) 02-10-2017
1,739
Posted By gigagigosu
Arrange files by modified date
Hi,

Am performing a find based on filename and result can contain multiple files being found
Let's say my find command is
find /Archive -f -name 12345.pdf

and result of find command is...
Forum: OS X (Apple) 02-06-2017
2,045
Posted By gigagigosu
each line contains several tab-separated fields...
each line contains several tab-separated fields that determine what action script will perform. provided string is just one of these :)
am not overly concern about performance as whole processign is...
Forum: OS X (Apple) 02-06-2017
2,045
Posted By gigagigosu
am parsing a tab delimited text file, one line at...
am parsing a tab delimited text file, one line at the time, your solution works fine, thank you for your help!
Forum: OS X (Apple) 02-06-2017
2,045
Posted By gigagigosu
shell please
shell please
Forum: OS X (Apple) 02-06-2017
2,045
Posted By gigagigosu
String manipulation
i have a string that am looking to extract all characters following 3 consecutiv numbers.
Example my string is J1705PEAN038TDMN, i need to get TDMN

My string can have multiple 3 consecutive...
Forum: OS X (Apple) 01-20-2017
1,439
Posted By gigagigosu
thank you both for your help!
thank you both for your help!
Forum: OS X (Apple) 01-20-2017
1,439
Posted By gigagigosu
thank you for your reply, that does work nicely. ...
thank you for your reply, that does work nicely.
after runnign your command i realized that some of my lines start with a space before ", some with ", can you please update the command so it...
Forum: OS X (Apple) 01-20-2017
1,439
Posted By gigagigosu
Text file cleanup
Hi there,

i do get some text files that i'd lile to clean them up based on following rule: if a line starts with " then remove return (new line, carriage return) before ".

Example, my input...
2,135
Posted By gigagigosu
jim, your suggestion does work but it's not...
jim,

your suggestion does work but it's not quite i had in mind....
I'll provide additional details: let's assume that i want to change the behaviour of built-in ls command, where by typing:
ls...
2,135
Posted By gigagigosu
script to change shell's pwd
Hi there,

i was presented with a challenge that is beyond my current shell knowledge: how can you have a script that executed interactive will change your current working directory?

Example...
3,244
Posted By gigagigosu
i believe that i found the solution: sed...
i believe that i found the solution:
sed 's/^0*//'

thanks for your reply
3,244
Posted By gigagigosu
remove all occurrences of a character at the beginning of a string
Hi there,

i need some help to remove all occurrences of a certain character at the beginning of a string.
Example: my string is 00102030 and i want to remove all zeros from beginning of string so...
3,924
Posted By gigagigosu
binlib, thank you for your reply, your...
binlib,

thank you for your reply, your solution also works fine!
3,924
Posted By gigagigosu
thank you! works perfect
thank you! works perfect
3,924
Posted By gigagigosu
Get character position within variable
Hi all

let's say i have a file named 1234_v2_abcd
i need to find the position of the character located after _v, in above case this would be character number 2
the count of the characters before...
12,432
Posted By gigagigosu
thank you all, i'll take a look at that link. ...
thank you all, i'll take a look at that link.

date -d'MAY 01 2011' '+%A' appears to be an incorrect usage of date command... at least under macos 10.6
12,432
Posted By gigagigosu
get weekday based on date
Hi all,

i am looking for a method of determining the weekday when date is know (bash, if possible).
Let's say that i am looking to get the weekday for MAY 01 2011, how can i convert this into...
3,794
Posted By gigagigosu
sorry for the confusion
sorry for the confusion
3,794
Posted By gigagigosu
alister, that's the difference between an...
alister,

that's the difference between an amateur like me and a pro like you :) you need only 2 lines to complete a script
3,794
Posted By gigagigosu
Corona688, thank you but that didn't solve...
Corona688,

thank you but that didn't solve the issue with weird names within paths. files with names containing spaces (as an example) will be omitted from being joined, all other ones will be...
3,794
Posted By gigagigosu
and how can i pass the correct paths if i have...
and how can i pass the correct paths if i have weird characters?
3,794
Posted By gigagigosu
my bash script currently end like this: ...
my bash script currently end like this:
/Scripts/Combine_PDFs_python.py -o /TEST`date +%H-%M-%S`.pdf "$all_PDFs"
and it this will output:
"/my_files/1.pdf" "/my_files/2.pdf"

if i add two lines...
3,794
Posted By gigagigosu
Franklin52, i tried that with same undesired...
Franklin52,

i tried that with same undesired result
3,794
Posted By gigagigosu
my script is: source_folder=/my_files cd...
my script is:

source_folder=/my_files
cd "$source_folder"
if [ "$(ls -A)" ]; then
for PDF_file in *
do
quoted_filename=\"$source_folder/$PDF_file\"
all_PDFs="$all_PDFs $quoted_filename"...
3,794
Posted By gigagigosu
passing arguments to external script
Hi!

I have a python script that requires arguments and these arguments are file paths. This script works fine when executed like this:
/my_python_script "file_path1" "file_path2"
(i added quotes...
Showing results 1 to 25 of 31

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