Search Results

Search: Posts Made By: AlphaLexman
872
Posted By AlphaLexman
You don't need individual permissions for each...
You don't need individual permissions for each file, just set directory permissions for the parent directory. With the right permissions, only owners can read and / or write to the directory, and the...
14,604
Posted By AlphaLexman
Well, yes. It has been 6-8 yrs since I have read...
Well, yes. It has been 6-8 yrs since I have read any fortran code, but I believe arguments or parameters are not valid.

I would follow up on Corona688's suggestion of modifying the program to...
14,604
Posted By AlphaLexman
No. The shell will evaluate the variable $FILE...
No. The shell will evaluate the variable $FILE and perform Variable Expansion to convert the variable into the actual filename.

If your program can handle arguments, the code would then use...
14,604
Posted By AlphaLexman
Assuming your fortan code can handle arguments......
Assuming your fortan code can handle arguments...
for FILE in *.txt; do fortran_progname ${FILE}; done
4,278
Posted By AlphaLexman
Are you trying to rename the file ?? It has...
Are you trying to rename the file ?? It has whitespace yes ??

Or do you just want the numerical value at the beginning of the file name ??
5,366
Posted By AlphaLexman
Look at this table: S M T W T F S ...
Look at this table:
S M T W T F S Day of the Week
1 1 1 1 1 1 1 If the First falls on D.o.W. then
17 16 16 16 16 18 18 The 12th working day is...
Since there is...
61,173
Posted By AlphaLexman
Try using tr -d '[blank]' instead.
Try using tr -d '[blank]' instead.
1,051
Posted By AlphaLexman
for i in 1 2 3; do echo -n "$i "; done
for i in 1 2 3; do echo -n "$i "; done
2,059
Posted By AlphaLexman
From a guy's point of view there is only a...
From a guy's point of view there is only a maximum of six answers, and you are giving the user 5 chances to guess it ??


Red
Blue
Green
Orange
Purple
Yellow


* White and Black...
7,122
Posted By AlphaLexman
The OP asked about if a file exists... However...
The OP asked about if a file exists...
However a file may exist, but NOT be a regular file...
So,
if [ -a myfile.txt ]Should be be considered as an alternative.

EDIT: @methyl, Not trying to...
4,138
Posted By AlphaLexman
If I understand the OP correctly du -sh */ should...
If I understand the OP correctly du -sh */ should give the desired results.
EDIT: (Maybe they only need TODAY's directories) Then I am wrong.
3,426
Posted By AlphaLexman
I admit I did miss the x100 files. That would...
I admit I did miss the x100 files. That would make 10 Billion digits. But note that 3.14159265... is pi NOT phi 1.6180339887...
3,426
Posted By AlphaLexman
If you have 1 million lines of 'phi' and each...
If you have 1 million lines of 'phi' and each line is 100 characters long, that is only 100 million digits of 'phi' not 10 billion
1,971
Posted By AlphaLexman
@ scottn: Thanks you are right. What I meant was...
@ scottn: Thanks you are right. What I meant was this then.

@ oht: Just change the alias name from test to test_it like this:

alias test_it='echo 123\$acct54679abc'

:o
1,971
Posted By AlphaLexman
@ oht: Just change the variable name from test to...
@ oht: Just change the variable name from test to test_it like this:
test_it='echo 123\$acct54679abc'
1,466
Posted By AlphaLexman
You can 'append' file(s) to a tarball, but...
You can 'append' file(s) to a tarball, but unfortunately in your case, you have to 'gunzip' in order to add another file to the archive.

I know this post is 4 days old and you may have figured it...
2,180
Posted By AlphaLexman
If I understand you correctly, you want a script...
If I understand you correctly, you want a script that will search for filenames with a pretext and a numerical value, and you want to find the given pretext with the largest numerical value?
...
2,096
Posted By AlphaLexman
@ Alister: Thanks for the correction.
@ Alister: Thanks for the correction.
2,096
Posted By AlphaLexman
Doesn't seem right, the man page for 'sed' states...
Doesn't seem right, the man page for 'sed' states that the option -e adds a script to the command(s), and hence should be a [space] after -e .

I also think you may need to escape each '*' with a...
3,873
Posted By AlphaLexman
The history command in 'ksh' is actually an alias...
The history command in 'ksh' is actually an alias to hist -l.

Use the syntax as such:
hist -l 1 999Where [1] is the first line of your history, and [999] is the last line of history you are...
2,473
Posted By AlphaLexman
'umask' is a subtractive value, so files and...
'umask' is a subtractive value, so files and directories are evaluated differently.
umask 000; touch filename.txt
will have a octal value of 666 and,
umask 000; mkdir new_directory
will have an...
3,474
Posted By AlphaLexman
Take a look at this thread...
Take a look at this thread (https://www.unix.com/shell-programming-scripting/157740-howto-get-only-filename-find-command-linux.html).
22,973
Posted By AlphaLexman
Using find will output filenames only for all...
Using find will output filenames only for all files modified not only within the last 24 hours, but all files modified today and from the beginning (midnight) of yesterday.

No need to 'touch' a...
8,407
Posted By AlphaLexman
ahamed101's script works for me in bash, what is...
ahamed101's script works for me in bash, what is your OS and what is your shell?

Here (https://www.unix.com/shell-programming-scripting/156949-file-size-mb.html) is a good thread to get filesizes.
9,941
Posted By AlphaLexman
Thanks to all who posted, you really showed me...
Thanks to all who posted, you really showed me some new ways to use awk! (Always learning.)
Showing results 1 to 25 of 85

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