Search Results

Search: Posts Made By: atoponce
12,295
Posted By atoponce
$ true $ echo $? 0 $ false $ echo $? 1 ...
$ true
$ echo $?
0
$ false
$ echo $?
1

That shows the exit code of "true" and "false". As you can see, they both do nothing. One returns a passing exit code, while the other returns a failing...
Forum: Open Source 11-10-2009
202,521
Posted By atoponce
I prefer Debian and Ubuntu for all of my...
I prefer Debian and Ubuntu for all of my installations. I've tried various other flavors since 1999, and I always come back to the Debian family.
12,295
Posted By atoponce
'true' returns nothing successfully, while false...
'true' returns nothing successfully, while false returns nothing unsuccessfully. As a result, using 'while false' would only exit your loop rather quickly, while not executing the code beneath....
Forum: Ubuntu 03-28-2009
4,645
Posted By atoponce
You are probably out of luck. Especially without...
You are probably out of luck. Especially without knowing the position of where GParted was. Chances are good that it had already resized the partition, and began moving data to the front of the...
1,960
Posted By atoponce
AWK is your friend: awk '/^john/,/^$/'...
AWK is your friend:

awk '/^john/,/^$/' /etc/securetty/user
1,557
Posted By atoponce
No need to double post:...
No need to double post: https://www.unix.com/shell-programming-scripting/105829-concatenate-two-files-different-no-rows.html
2,727
Posted By atoponce
Backticks suck. Also, there's no need for find,...
Backticks suck. Also, there's no need for find, if they're all in the same directory.

mv *_$(date +%Y%m%d)*.xml ./xmlreprocess
Forum: Open Source 03-28-2009
202,521
Posted By atoponce
I like the Debian-based distributions the best....
I like the Debian-based distributions the best. Red Hat seems to be catering specifically to system administrators, while the Debian family seems to be targeting a more universal crowd. I prefer...
Forum: Linux 03-28-2009
6,871
Posted By atoponce
Just call it like you would in any shell script....
Just call it like you would in any shell script. If it's a python script, then "python script.py". If it's a BASH script, then "bash script.sh", and so forth. Anything in the %pre section of the SPEC...
Showing results 1 to 9 of 9

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