Search Results

Search: Posts Made By: bassman121
25,084
Posted By bassman121
Do you mean like this? > date Mon Apr 11...
Do you mean like this?

> date
Mon Apr 11 20:36:30 EDT 2011
> date +'%m/%d/%Y %H:%M:%S'
04/11/2011 20:36:31
1,143
Posted By bassman121
Try this: for file in *_.txt; do mv $file...
Try this:

for file in *_.txt; do mv $file `echo $file | sed 's/_.txt/.txt/g'`; done
6,333
Posted By bassman121
Or.... find *.log
Or....



find *.log
6,333
Posted By bassman121
Try....... find . -name...
Try.......



find . -name "*.log"
35,572
Posted By bassman121
Try this.....(although there might be a better...
Try this.....(although there might be a better way)




ls -ltrhS | grep "Apr [2-4]" | awk -F' ' '{print $9}' | xargs rm -f



You can't pass the output of 'ls -ltrhS' into rm, you only...
2,326
Posted By bassman121
I used sort and gave the output you provided...
I used sort and gave the output you provided above....


$ cat test.txt
1,2,3,12
1,3,6,12
1,3,5,12
2,4,6,12
6,5,6,12
4,2,7,12
4,1,3,12

$ sort test.txt
1,2,3,12
1,3,5,12
1,3,6,12...
13,258
Posted By bassman121
Why not edit the .profile and add what you need? ...
Why not edit the .profile and add what you need?


$ > echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin
$ > vi $HOME/.profile
# They are expected to edit it to meet their own needs.
...
1,331
Posted By bassman121
Try this...it was the do loop #!/bin/bash...
Try this...it was the do loop


#!/bin/bash

echo "This utility adds numbers entered from the keyboard."
echo "When all numbers have been entered, press key ^d (eof) to see the total."
echo
...
1,331
Posted By bassman121
This worked for me
This worked for me:


#!/bin/bash

echo "This utility adds numbers entered from the keyboard."
echo "When all numbers have been entered, press key ^d (eof) to see the total."
echo

echo...
10,797
Posted By bassman121
Try this link below....it uses Unix command...
Try this link below....it uses Unix command called "tee"

https://www.unix.com/unix-dummies-questions-answers/11017-redirect-output-multiple-files.html
Showing results 1 to 10 of 10

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