10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
TARGET_DIR='/media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/'
REGEX='{4}-{2}-{2}_{2}:{2}' # regular expression that match to: date '+%Y-%m-%d_%H:%M'
LATEST_FILE="$(ls "$TARGET_DIR" | egrep "^${REGEX}$" | tail -1)"
find "$TARGET_DIR" ! -name "$LATEST_FILE" -type f -regextype egrep -regex... (7 Replies)
Discussion started by: drew77
7 Replies
2. Shell Programming and Scripting
Dear folks
I have a map file of around 54K lines and some of the values in the second column have the same value and I want to find them and delete all of the same values. I looked over duplicate commands but my case is not to keep one of the duplicate values. I want to remove all of the same... (4 Replies)
Discussion started by: sajmar
4 Replies
3. UNIX for Advanced & Expert Users
hi there
i try to login on a remote system without running the .profile of the remote user.
is there a way to do that? can i just ignore it or can i tell the ssh command wich .profile to use?
thanks for your help.
cheers,
zeroone (1 Reply)
Discussion started by: zeroone
1 Replies
4. Shell Programming and Scripting
Hi,
In a file, I have to mark duplicate records as 'D' and the latest record alone as 'C'.
In the below file, I have to identify if duplicate records are there or not based on Man_ID, Man_DT, Ship_ID and I have to mark the record with latest Ship_DT as "C" and other as "D" (I have to create... (7 Replies)
Discussion started by: machomaddy
7 Replies
5. Shell Programming and Scripting
Is there a way to customize ls to ignore files ending with ~ and #? (those are Emacs backup and auto-save files). I found -B option, which only ignores ~ files (2 Replies)
Discussion started by: yaroslavvb
2 Replies
6. Red Hat
hi,
i'm having a post fix email server and clients are accessing with out client. Once client accessing email from LAN and from his Broad Band connection too. Once that user download mails from server on LAN, when he try to access the emails again from home using his Broad Band connection same... (1 Reply)
Discussion started by: charitha rakkit
1 Replies
7. Shell Programming and Scripting
Sorry I made a mistake in my last post (output is suppose to be the opposite). Here is a revised post.
Hi,
I am not sure if this has already been asked (I tried the search but the search was too broad). Basically I want to remove rows based on another file.
So file1 looks like this (tab... (3 Replies)
Discussion started by: kylle345
3 Replies
8. Shell Programming and Scripting
Hi All,
The means I use to ignore case, as an example is the following snippet:
It should accept any oof the following y|Y|YES|Yes|n|N|NO|No
echo "Enter Y/N to continue: "
read choice; (3 Replies)
Discussion started by: raghur77
3 Replies
9. UNIX for Dummies Questions & Answers
Most of the people think that they can not use Unix as desktop.
By this poll we gone tell them that we not just use Unix as desktop but also love different display managers like GNOME, KDE etc..... (1 Reply)
Discussion started by: ynilesh
1 Replies
10. UNIX for Dummies Questions & Answers
hi,
I have the following input in file:
abc
ab
a
AB
b
c
a
C
B
When I use uniq -u file,the out put file is:
abc
ab
AB
c
v
B
C (17 Replies)
Discussion started by: hellsd
17 Replies